aboutsummaryrefslogtreecommitdiffstats
path: root/src/VppVirtualRouter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/VppVirtualRouter.cpp')
-rw-r--r--src/VppVirtualRouter.cpp31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/VppVirtualRouter.cpp b/src/VppVirtualRouter.cpp
new file mode 100644
index 0000000..d61c25f
--- /dev/null
+++ b/src/VppVirtualRouter.cpp
@@ -0,0 +1,31 @@
+/* -*- C++ -*-; c-basic-offset: 4; indent-tabs-mode: nil */
+/*
+ * Copyright (c) 2017 Cisco Systems, Inc. and others. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
+
+#include "VppVirtualRouter.hpp"
+
+namespace VPP
+{
+
+VirtualRouter::VirtualRouter(const VOM::mac_address_t &mac)
+ : m_mac(mac)
+{
+}
+
+const VOM::mac_address_t &
+VirtualRouter::mac() const
+{
+ return (m_mac);
+}
+}
+
+/*
+ * Local Variables:
+ * eval: (c-set-style "llvm.org")
+ * End:
+ */