diff options
author | Mohsin Kazmi <sykazmi@cisco.com> | 2018-09-27 15:00:32 +0200 |
---|---|---|
committer | Neale Ranns <nranns@cisco.com> | 2018-09-29 17:06:30 +0000 |
commit | 762d83c198c6c24cce4eb94a6d027f520d0b8383 (patch) | |
tree | a7e9c4f0cc872642a7e39cc6b2fcefa7d21070d1 /extras/vom/vom/l2_binding_cmds.hpp | |
parent | 539663c401b087e4576e41af35144e73e1907c9d (diff) |
vom: Fix the l2 port type in bridge domain
Change-Id: I8aba11142daeacce892ec529c2229ec54ee427e2
Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
Diffstat (limited to 'extras/vom/vom/l2_binding_cmds.hpp')
-rw-r--r-- | extras/vom/vom/l2_binding_cmds.hpp | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/extras/vom/vom/l2_binding_cmds.hpp b/extras/vom/vom/l2_binding_cmds.hpp index 3d138b1d1af..e864f9d0149 100644 --- a/extras/vom/vom/l2_binding_cmds.hpp +++ b/extras/vom/vom/l2_binding_cmds.hpp @@ -35,7 +35,10 @@ public: /** * Constructor */ - bind_cmd(HW::item<bool>& item, const handle_t& itf, uint32_t bd, bool is_bvi); + bind_cmd(HW::item<bool>& item, + const handle_t& itf, + uint32_t bd, + const l2_binding::l2_port_type_t& port_type); /** * Issue the command to VPP/HW @@ -63,9 +66,9 @@ private: uint32_t m_bd; /** - * Is it a BVI interface that is being bound + * What is the port type i.e. normal, bvi, uu-fwd that is being bound */ - bool m_is_bvi; + const l2_binding::l2_port_type_t& m_port_type; }; /** @@ -81,7 +84,7 @@ public: unbind_cmd(HW::item<bool>& item, const handle_t& itf, uint32_t bd, - bool is_bvi); + const l2_binding::l2_port_type_t& port_type); /** * Issue the command to VPP/HW @@ -109,9 +112,9 @@ private: uint32_t m_bd; /** - * Is it a BVI interface that is being bound + * What is the port type i.e. bvi, normal or uu-fwd that is being bound */ - bool m_is_bvi; + const l2_binding::l2_port_type_t& m_port_type; }; /** |