diff options
author | Neale Ranns <neale.ranns@cisco.com> | 2017-11-03 04:39:05 -0700 |
---|---|---|
committer | Neale Ranns <nranns@cisco.com> | 2017-11-06 17:44:21 +0000 |
commit | 9ef1c0adbf9399c55deeede3cf629dd4e8c20304 (patch) | |
tree | 0eeed8f869eee35a48797b6b837c16222a627e46 /src/vpp-api/vom/acl_l3_rule.hpp | |
parent | addb55b9e0533c5f720b1cc1bdeeb4bbd0e6bf2a (diff) |
VOM reshuffle
split the VOM into two halves; a top/front-end and a bottom/backend.
Only the backend includes the auto-generated VAPI.
This serves two purposes:
1 - improves ompile times for VOM, since the VAPI is included
only in the backend.
2 - does not expose VAPI to users of VOM
Change-Id: I17b93aeaef10c0eba8612016d9034aca5628d9f7
Signed-off-by: Neale Ranns <neale.ranns@cisco.com>
Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
Diffstat (limited to 'src/vpp-api/vom/acl_l3_rule.hpp')
-rw-r--r-- | src/vpp-api/vom/acl_l3_rule.hpp | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/src/vpp-api/vom/acl_l3_rule.hpp b/src/vpp-api/vom/acl_l3_rule.hpp index db3ddb41639..16a8718a99e 100644 --- a/src/vpp-api/vom/acl_l3_rule.hpp +++ b/src/vpp-api/vom/acl_l3_rule.hpp @@ -19,8 +19,6 @@ #include "vom/acl_types.hpp" #include "vom/prefix.hpp" -#include <vapi/acl.api.vapi.hpp> - namespace VOM { namespace ACL { /** @@ -67,11 +65,6 @@ public: bool operator==(const l3_rule& rule) const; /** - * Convert to VPP API fromat - */ - void to_vpp(vapi_type_acl_rule& rule) const; - - /** * Set Src Ip Address */ void set_src_ip(route::prefix_t src); @@ -116,6 +109,21 @@ public: */ void set_tcp_flags_value(uint8_t tcp_flags_value); + /** + * Getters + */ + const route::prefix_t& src() const; + uint32_t priority() const; + action_t action() const; + const route::prefix_t& dst() const; + uint8_t proto() const; + uint16_t srcport_or_icmptype_first() const; + uint16_t srcport_or_icmptype_last() const; + uint16_t dstport_or_icmpcode_first() const; + uint16_t dstport_or_icmpcode_last() const; + uint8_t tcp_flags_mask() const; + uint8_t tcp_flags_value() const; + private: /** * Priority. Used to sort the rules in a list in the order |