aboutsummaryrefslogtreecommitdiffstats
path: root/extras/vom
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2019-03-28 07:56:23 -0700
committerDamjan Marion <dmarion@me.com>2019-04-08 21:55:07 +0000
commit796c84b25130c99cfd92cc9281416d377d41d2a3 (patch)
treeee90f93e3cbb2e0a78ae62ea3a181239e4b36324 /extras/vom
parentf324dec0a371431f9326f67e920630579741da3c (diff)
GBP: drop and contract counters
Change-Id: Ib436512a26e53f70f7b5e47bf34224ab73e5244e Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'extras/vom')
-rw-r--r--extras/vom/vom/gbp_contract.hpp2
-rw-r--r--extras/vom/vom/gbp_contract_cmds.cpp6
-rw-r--r--extras/vom/vom/gbp_contract_cmds.hpp10
3 files changed, 11 insertions, 7 deletions
diff --git a/extras/vom/vom/gbp_contract.hpp b/extras/vom/vom/gbp_contract.hpp
index a8e15fb7976..2e8f9d0bc26 100644
--- a/extras/vom/vom/gbp_contract.hpp
+++ b/extras/vom/vom/gbp_contract.hpp
@@ -164,7 +164,7 @@ private:
/**
* HW configuration for the result of creating the endpoint
*/
- HW::item<bool> m_hw;
+ HW::item<uint32_t> m_hw;
/**
* The source EPG ID
diff --git a/extras/vom/vom/gbp_contract_cmds.cpp b/extras/vom/vom/gbp_contract_cmds.cpp
index b5705347791..6aed9998e1e 100644
--- a/extras/vom/vom/gbp_contract_cmds.cpp
+++ b/extras/vom/vom/gbp_contract_cmds.cpp
@@ -19,7 +19,7 @@
namespace VOM {
namespace gbp_contract_cmds {
-create_cmd::create_cmd(HW::item<bool>& item,
+create_cmd::create_cmd(HW::item<uint32_t>& item,
sclass_t sclass,
sclass_t dclass,
const handle_t& acl,
@@ -116,7 +116,9 @@ create_cmd::to_string() const
return (s.str());
}
-delete_cmd::delete_cmd(HW::item<bool>& item, sclass_t sclass, sclass_t dclass)
+delete_cmd::delete_cmd(HW::item<uint32_t>& item,
+ sclass_t sclass,
+ sclass_t dclass)
: rpc_cmd(item)
, m_sclass(sclass)
, m_dclass(dclass)
diff --git a/extras/vom/vom/gbp_contract_cmds.hpp b/extras/vom/vom/gbp_contract_cmds.hpp
index 7108c53f77b..3b3fab97a70 100644
--- a/extras/vom/vom/gbp_contract_cmds.hpp
+++ b/extras/vom/vom/gbp_contract_cmds.hpp
@@ -27,13 +27,14 @@ namespace gbp_contract_cmds {
/**
* A command class that creates or updates the GBP contract
*/
-class create_cmd : public rpc_cmd<HW::item<bool>, vapi::Gbp_contract_add_del>
+class create_cmd
+ : public rpc_cmd<HW::item<uint32_t>, vapi::Gbp_contract_add_del>
{
public:
/**
* Constructor
*/
- create_cmd(HW::item<bool>& item,
+ create_cmd(HW::item<uint32_t>& item,
sclass_t sclass,
sclass_t dclass,
const handle_t& acl,
@@ -66,13 +67,14 @@ private:
/**
* A cmd class that deletes a GBP contract
*/
-class delete_cmd : public rpc_cmd<HW::item<bool>, vapi::Gbp_contract_add_del>
+class delete_cmd
+ : public rpc_cmd<HW::item<uint32_t>, vapi::Gbp_contract_add_del>
{
public:
/**
* Constructor
*/
- delete_cmd(HW::item<bool>& item, sclass_t sclass, sclass_t dclass);
+ delete_cmd(HW::item<uint32_t>& item, sclass_t sclass, sclass_t dclass);
/**
* Issue the command to VPP/HW