summaryrefslogtreecommitdiffstats
path: root/src/vpp-api/vom/acl_list_cmds.cpp
diff options
context:
space:
mode:
authorMohsin Kazmi <sykazmi@cisco.com>2018-02-26 18:36:17 +0100
committerNeale Ranns <nranns@cisco.com>2018-03-06 14:47:28 +0000
commitb5eb3b185fb04bfed3ba6c89323cd82e7d666bae (patch)
treeeadb31b9933e574b601b35329720302ffe4a1ea5 /src/vpp-api/vom/acl_list_cmds.cpp
parent3f6ede3ab3df9624ba3682d5bc82c4f2aa2e0506 (diff)
VOM: Fix state reconciliation
This commit also fixes the acl and arp handle for inspector to view internal state of VOM. Change-Id: Ibc8ff6cb51d2a77b4c04993ac7212564b8892337 Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
Diffstat (limited to 'src/vpp-api/vom/acl_list_cmds.cpp')
-rw-r--r--src/vpp-api/vom/acl_list_cmds.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/vpp-api/vom/acl_list_cmds.cpp b/src/vpp-api/vom/acl_list_cmds.cpp
index 80df04ef145..2e59763f4fe 100644
--- a/src/vpp-api/vom/acl_list_cmds.cpp
+++ b/src/vpp-api/vom/acl_list_cmds.cpp
@@ -75,7 +75,8 @@ l3_update_cmd::issue(connection& con)
VAPI_CALL(req.execute());
m_hw_item = wait();
- complete();
+ if (m_hw_item.rc() == rc_t::OK)
+ insert_acl();
return rc_t::OK;
}
@@ -94,6 +95,8 @@ l3_delete_cmd::issue(connection& con)
wait();
m_hw_item.set(rc_t::NOOP);
+ remove_acl();
+
return rc_t::OK;
}
@@ -138,6 +141,8 @@ l2_update_cmd::issue(connection& con)
VAPI_CALL(req.execute());
m_hw_item = wait();
+ if (m_hw_item.rc() == rc_t::OK)
+ insert_acl();
return rc_t::OK;
}
@@ -156,6 +161,8 @@ l2_delete_cmd::issue(connection& con)
wait();
m_hw_item.set(rc_t::NOOP);
+ remove_acl();
+
return rc_t::OK;
}