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 V2
[vpp.git]
/
src
/
vpp-api
/
vom
/
gbp_endpoint.hpp
diff --git
a/src/vpp-api/vom/gbp_endpoint.hpp
b/src/vpp-api/vom/gbp_endpoint.hpp
index
9118cb8
..
f6466a6
100644
(file)
--- a/
src/vpp-api/vom/gbp_endpoint.hpp
+++ b/
src/vpp-api/vom/gbp_endpoint.hpp
@@
-16,19
+16,15
@@
#ifndef __VOM_GBP_ENDPOINT_H__
#define __VOM_GBP_ENDPOINT_H__
#ifndef __VOM_GBP_ENDPOINT_H__
#define __VOM_GBP_ENDPOINT_H__
+#include <ostream>
+
+#include "vom/gbp_endpoint_group.hpp"
#include "vom/interface.hpp"
#include "vom/singular_db.hpp"
#include "vom/interface.hpp"
#include "vom/singular_db.hpp"
-#include "vom/types.hpp"
namespace VOM {
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
{
*/
class gbp_endpoint : public object_base
{
@@
-43,7
+39,8
@@
public:
*/
gbp_endpoint(const interface& itf,
const boost::asio::ip::address& ip_addr,
*/
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
/**
* Copy Construct
@@
-164,12
+161,17
@@
private:
/**
* The IP address of the endpoint
*/
/**
* 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
/**
* A map of all bridge_domains