summaryrefslogtreecommitdiffstats
path: root/src/vpp-api/vom/gbp_endpoint.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/vpp-api/vom/gbp_endpoint.hpp')
-rw-r--r--src/vpp-api/vom/gbp_endpoint.hpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/vpp-api/vom/gbp_endpoint.hpp b/src/vpp-api/vom/gbp_endpoint.hpp
index 6ece4fa5431..f6466a6077d 100644
--- a/src/vpp-api/vom/gbp_endpoint.hpp
+++ b/src/vpp-api/vom/gbp_endpoint.hpp
@@ -18,19 +18,13 @@
#include <ostream>
+#include "vom/gbp_endpoint_group.hpp"
#include "vom/interface.hpp"
#include "vom/singular_db.hpp"
-#include "vom/types.hpp"
namespace VOM {
-
-/**
- * EPG IDs are 32 bit integers
- */
-typedef uint32_t epg_id_t;
-
/**
- * A entry in the ARP termination table of a Bridge Domain
+ * A GBP Enpoint (i.e. a VM)
*/
class gbp_endpoint : public object_base
{
@@ -45,7 +39,8 @@ public:
*/
gbp_endpoint(const interface& itf,
const boost::asio::ip::address& ip_addr,
- epg_id_t epg_id);
+ const mac_address_t& mac,
+ const gbp_endpoint_group& epg);
/**
* Copy Construct
@@ -166,12 +161,17 @@ private:
/**
* The IP address of the endpoint
*/
- boost::asio::ip::address m_ip_addr;
+ boost::asio::ip::address m_ip;
+
+ /**
+ * The MAC address of the endpoint
+ */
+ mac_address_t m_mac;
/**
- * The EPG ID
+ * The EPG the endpoint is in
*/
- epg_id_t m_epg_id;
+ std::shared_ptr<gbp_endpoint_group> m_epg;
/**
* A map of all bridge_domains