diff options
author | Mohsin Kazmi <sykazmi@cisco.com> | 2018-02-07 20:20:36 +0100 |
---|---|---|
committer | Mohsin Kazmi <sykazmi@cisco.com> | 2018-02-13 11:16:32 +0100 |
commit | 49c7f0ca1770304183a8bdfa23a5df751a056401 (patch) | |
tree | e53504d422f02b07e1b6b8aa4dd713decb6b6b14 /src/vpp-api/vom/types.hpp | |
parent | 26f341a8392d73735d7f341d7e947150966eeb6b (diff) |
VOM: ACL: Add Object Model for acl ethertype
Change-Id: I2b572ebd4b7bb26381f127912a4cc0825c04fc34
Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
Diffstat (limited to 'src/vpp-api/vom/types.hpp')
-rw-r--r-- | src/vpp-api/vom/types.hpp | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/src/vpp-api/vom/types.hpp b/src/vpp-api/vom/types.hpp index 4deb6c489a6..8543a6604bb 100644 --- a/src/vpp-api/vom/types.hpp +++ b/src/vpp-api/vom/types.hpp @@ -159,6 +159,72 @@ struct direction_t : public enum_base<direction_t> std::ostream& operator<<(std::ostream& os, const direction_t& dir); /** + * Feature Ethertype + */ +struct ethertype_t : public enum_base<ethertype_t> +{ + /** + * Constructor + */ + ethertype_t(int v, const std::string s); + + /** + * Destructor + */ + ~ethertype_t() = default; + + /** + * Ethertype Arp + */ + const static ethertype_t ARP; + + /** + * Ethertype FCoE + */ + const static ethertype_t FCOE; + + /** + * Ethertype IPv4 + */ + const static ethertype_t IPV4; + + /** + * Ethertype Ipv6 + */ + const static ethertype_t IPV6; + + /** + * Ethertype MAC Security + */ + const static ethertype_t MAC_SECURITY; + + /** + * Ethertype MPLS unicast + */ + const static ethertype_t MPLS_UNICAST; + + /** + * Ethertype TRILL + */ + const static ethertype_t TRILL; + + /** + * Ethertype Unspecified + */ + const static ethertype_t UNSPECIFIED; + + /** + * Get the ethertype from the numeric value + */ + static const ethertype_t& from_numeric_val(uint16_t numeric); +}; + +/** + * Output ostream for ethertype_t + */ +std::ostream& operator<<(std::ostream& os, const ethertype_t& eth); + +/** * A type declaration of an interface handle in VPP */ struct handle_t |