VOM: GBP show allowed ethertypes in contracts 49/18049/1
authorNeale Ranns <nranns@cisco.com>
Wed, 6 Mar 2019 07:59:15 +0000 (23:59 -0800)
committerNeale Ranns <nranns@cisco.com>
Wed, 6 Mar 2019 07:59:15 +0000 (23:59 -0800)
Change-Id: I8314f51d519966b1d9aef96318f6836ace944c9a
Signed-off-by: Neale Ranns <nranns@cisco.com>
extras/vom/vom/gbp_contract.cpp
extras/vom/vom/gbp_contract_cmds.cpp

index f372acf..0ef50ad 100644 (file)
@@ -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());
 }
index 7c42fc6..5cdd885 100644 (file)
@@ -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());
 }