From d91d14095b8ac0d3151fd8f6b03277d447029814 Mon Sep 17 00:00:00 2001 From: Mohsin Kazmi Date: Wed, 14 Feb 2018 15:47:19 +0100 Subject: VOM: acl: Some necessary fixes It: 1. changes ethertype_rule_t to hold actual objects instead of reference to them. 2. fixes acl_ethertype 'update' function 3. fixes pretty-print of acl-list-update. 4. adds l3-acl update unit test. Change-Id: Iec72212806e96bd0574b46b563de79f0744cb248 Signed-off-by: Mohsin Kazmi --- src/vpp-api/vom/acl_list_cmds.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/vpp-api/vom/acl_list_cmds.hpp') diff --git a/src/vpp-api/vom/acl_list_cmds.hpp b/src/vpp-api/vom/acl_list_cmds.hpp index e4aa950bdce..23d77c7e26c 100644 --- a/src/vpp-api/vom/acl_list_cmds.hpp +++ b/src/vpp-api/vom/acl_list_cmds.hpp @@ -59,7 +59,11 @@ public: std::string to_string() const { std::ostringstream s; - s << "ACL-list-update: " << this->item().to_string(); + s << "ACL-list-update:[ " << this->item().to_string() << " rule-list:["; + for (auto rule : m_rules) { + s << " " << rule.to_string(); + } + s << "]]"; return (s.str()); } -- cgit 1.2.3-korg