Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
GBP: fixes for l3-out routing
[vpp.git]
/
extras
/
vom
/
vom
/
vxlan_tunnel.hpp
diff --git
a/extras/vom/vom/vxlan_tunnel.hpp
b/extras/vom/vom/vxlan_tunnel.hpp
index
63124e7
..
4c46e75
100644
(file)
--- a/
extras/vom/vom/vxlan_tunnel.hpp
+++ b/
extras/vom/vom/vxlan_tunnel.hpp
@@
-82,7
+82,8
@@
public:
{
~mode_t() = default;
const static mode_t STANDARD;
{
~mode_t() = default;
const static mode_t STANDARD;
- const static mode_t GBP;
+ const static mode_t GBP_L2;
+ const static mode_t GBP_L3;
const static mode_t GPE;
private:
const static mode_t GPE;
private:
@@
-102,6
+103,11
@@
public:
uint32_t vni,
const interface& mcast_itf,
const mode_t& mode = mode_t::STANDARD);
uint32_t vni,
const interface& mcast_itf,
const mode_t& mode = mode_t::STANDARD);
+ vxlan_tunnel(const boost::asio::ip::address& src,
+ const boost::asio::ip::address& dst,
+ uint32_t vni,
+ const route_domain& rd,
+ const mode_t& mode = mode_t::STANDARD);
/*
* Destructor
/*
* Destructor
@@
-113,6
+119,11
@@
public:
*/
vxlan_tunnel(const vxlan_tunnel& o);
*/
vxlan_tunnel(const vxlan_tunnel& o);
+ /**
+ * comparison operator
+ */
+ bool operator==(const vxlan_tunnel& vx) const;
+
/**
* Return the matching 'singular instance'
*/
/**
* Return the matching 'singular instance'
*/
@@
-221,6
+232,16
@@
private:
*/
std::shared_ptr<interface> m_mcast_itf;
*/
std::shared_ptr<interface> m_mcast_itf;
+ /**
+ * The RD an L3 interface is bound to
+ */
+ std::shared_ptr<const route_domain> m_rd;
+
+ /**
+ * HW state of the VPP table mapping
+ */
+ HW::item<route::table_id_t> m_table_id;
+
/**
* Construct a unique name for the tunnel
*/
/**
* Construct a unique name for the tunnel
*/