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_ethertype.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/vpp-api/vom/acl_ethertype.hpp') diff --git a/src/vpp-api/vom/acl_ethertype.hpp b/src/vpp-api/vom/acl_ethertype.hpp index 42897aebd6a..98d3ce20707 100644 --- a/src/vpp-api/vom/acl_ethertype.hpp +++ b/src/vpp-api/vom/acl_ethertype.hpp @@ -76,12 +76,12 @@ private: /** * ethertype for this rule */ - const ethertype_t& m_eth; + const ethertype_t m_eth; /** * direction in which ethertype will be applied w.r.t. intf */ - const direction_t& m_dir; + const direction_t m_dir; }; class acl_ethertype : public object_base @@ -102,7 +102,7 @@ public: /** * Construct a new object matching the desried state */ - acl_ethertype(const interface& itf, ethertype_rules_t le); + acl_ethertype(const interface& itf, const ethertype_rules_t& le); /** * Copy Constructor -- cgit 1.2.3-korg