From 4689da0c6104435f86fab19e6bb4d1342ce4dcaf Mon Sep 17 00:00:00 2001 From: Neale Ranns Date: Mon, 4 Mar 2019 01:14:24 -0800 Subject: GBP: fix and print GBP BD flags Change-Id: If3fe2752c9339049123ff4674e3a29449b520374 Signed-off-by: Neale Ranns --- extras/vom/vom/gbp_bridge_domain.cpp | 5 +++-- extras/vom/vom/gbp_bridge_domain_cmds.cpp | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'extras') diff --git a/extras/vom/vom/gbp_bridge_domain.cpp b/extras/vom/vom/gbp_bridge_domain.cpp index 78f7d8d270f..c8d42d264a3 100644 --- a/extras/vom/vom/gbp_bridge_domain.cpp +++ b/extras/vom/vom/gbp_bridge_domain.cpp @@ -23,7 +23,7 @@ namespace VOM { const gbp_bridge_domain::flags_t gbp_bridge_domain::flags_t::NONE(0, "none"); const gbp_bridge_domain::flags_t gbp_bridge_domain::flags_t::DO_NOT_LEARN( - 0, + 1, "do-not-learn"); gbp_bridge_domain::flags_t::flags_t(int v, const std::string& s) @@ -200,7 +200,8 @@ std::string gbp_bridge_domain::to_string() const { std::ostringstream s; - s << "gbp-bridge-domain:[" << m_bd->to_string(); + s << "gbp-bridge-domain:[" << m_bd->to_string() + << " flags:" << m_flags.to_string(); if (m_bvi) s << " bvi:" << m_bvi->to_string(); diff --git a/extras/vom/vom/gbp_bridge_domain_cmds.cpp b/extras/vom/vom/gbp_bridge_domain_cmds.cpp index f5a6888b8a7..6fa8c49f9e5 100644 --- a/extras/vom/vom/gbp_bridge_domain_cmds.cpp +++ b/extras/vom/vom/gbp_bridge_domain_cmds.cpp @@ -65,7 +65,8 @@ create_cmd::to_string() const { std::ostringstream s; s << "gbp-bridge-domain: " << m_hw_item.to_string() - << " bvi:" << m_bvi.to_string() << " uu-fwd:" << m_uu_fwd.to_string(); + << " flags:" << m_flags.to_string() << " bvi:" << m_bvi.to_string() + << " uu-fwd:" << m_uu_fwd.to_string(); return (s.str()); } -- cgit 1.2.3-korg