From dc8d93b02949f508d5eed312a51aa91102224b39 Mon Sep 17 00:00:00 2001 From: Neale Ranns Date: Tue, 5 Mar 2019 23:59:15 -0800 Subject: VOM: GBP show allowed ethertypes in contracts Change-Id: I8314f51d519966b1d9aef96318f6836ace944c9a Signed-off-by: Neale Ranns --- extras/vom/vom/gbp_contract.cpp | 5 ++++- extras/vom/vom/gbp_contract_cmds.cpp | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'extras') diff --git a/extras/vom/vom/gbp_contract.cpp b/extras/vom/vom/gbp_contract.cpp index f372acf2e4c..0ef50ad5535 100644 --- a/extras/vom/vom/gbp_contract.cpp +++ b/extras/vom/vom/gbp_contract.cpp @@ -101,7 +101,10 @@ gbp_contract::to_string() const ++it; } } - s << "]"; + s << "[ethertype:"; + for (auto e : m_allowed_ethertypes) + s << " " << e; + s << "]]"; return (s.str()); } diff --git a/extras/vom/vom/gbp_contract_cmds.cpp b/extras/vom/vom/gbp_contract_cmds.cpp index 7c42fc6bc4e..5cdd885f304 100644 --- a/extras/vom/vom/gbp_contract_cmds.cpp +++ b/extras/vom/vom/gbp_contract_cmds.cpp @@ -114,6 +114,10 @@ create_cmd::to_string() const s << "gbp-contract-create: " << m_hw_item.to_string() << " src-epg-id:" << m_src_epg_id << " dst-epg-id:" << m_dst_epg_id << " acl:" << m_acl; + s << "[ethertype:"; + for (auto e : m_allowed_ethertypes) + s << " " << e; + s << "]"; return (s.str()); } -- cgit 1.2.3-korg