diff options
author | Neale Ranns <nranns@cisco.com> | 2019-06-19 08:30:46 -0700 |
---|---|---|
committer | Neale Ranns <nranns@cisco.com> | 2019-06-26 16:41:01 +0000 |
commit | a83d9d67113dc75d21a68dba14891ed5e1bea7ec (patch) | |
tree | 829b8724c836bc48be1a45901291df129d678f69 /src/VppVirtualRouter.cpp | |
parent | ef426ed7714e87cee2097ed5245a78b92a0158ce (diff) |
Initial Commit of VPP OPflex Renderer
Change-Id: I6264537538ad2646cddfa404de38a6bbf3abaa35
Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'src/VppVirtualRouter.cpp')
-rw-r--r-- | src/VppVirtualRouter.cpp | 31 |
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: + */ |