10 #include <vnc_cfg_types.h>
11 #include <bgp_schema_types.h>
12 #include <agent_types.h>
46 std::cout << str << std::endl;
47 if (system(str.c_str()) < 0) {
48 LOG(ERROR,
"Error executing command : " << str);
81 s <<
"brctl addbr " <<
name_;
86 <<
" group 239.1.1.1 dstport 0";
94 s <<
"ifconfig " <<
name_ <<
" up";
114 s <<
" brctl delbr " <<
name_;
205 switch (intrface->
type()) {
235 sprintf(buff,
"%02x:%02x:%02x:%02x:%02x:%02x",
248 if (
port() !=
nullptr) {
250 s <<
"bridge fdb add " << buff <<
" dev " <<
port()->
port_name()
258 s <<
"bridge fdb add " << buff <<
" dst " <<
tunnel_dest() <<
" dev "
274 if (
port() !=
nullptr) {
276 s <<
"bridge fdb del " << buff <<
" dev " <<
port()->
port_name()
Agent supports multiple route tables - Inet-unicast (IPv4/IPv6), Inet-multicast, bridge,...
const std::string name() const
std::string vxlan_port_name_
KSyncLinuxBridgeEntry(KSyncLinuxBridgeObject *obj, const VxLanId *vxlan)
const std::string vxlan_port_name() const
KSyncEntry * DBToKSyncEntry(const DBEntry *e)
KSyncEntry * Alloc(const KSyncEntry *entry, uint32_t index)
KSyncLinuxBridgeObject(KSyncLinuxVxlan *ksync)
KSyncLinuxFdbEntry(KSyncLinuxFdbObject *obj, const BridgeRouteEntry *route)
virtual ~KSyncLinuxFdbEntry()
KSyncEntry * Alloc(const KSyncEntry *entry, uint32_t index)
virtual ~KSyncLinuxFdbObject()
KSyncEntry * DBToKSyncEntry(const DBEntry *e)
KSyncLinuxFdbObject(KSyncLinuxVrfObject *vrf, AgentRouteTable *rt_table)
const KSyncLinuxBridgeEntry * old_bridge_
KSyncLinuxPortEntry(KSyncLinuxPortObject *obj, const Interface *intrface)
KSyncLinuxPortObject(KSyncLinuxVxlan *ksync)
virtual KSyncEntry * DBToKSyncEntry(const DBEntry *e)
virtual KSyncEntry * Alloc(const KSyncEntry *entry, uint32_t index)
KSyncVxlanRouteObject * AllocBridgeRouteTable(const VrfEntry *entry)
KSyncLinuxVrfObject(KSyncLinuxVxlan *ksync)
virtual ~KSyncLinuxVrfObject()
KSyncLinuxVxlan(Agent *agent)
uint32_t vxlan_id() const
const Ip4Address & tunnel_dest() const
const KSyncVxlanBridgeEntry * bridge() const
const KSyncVxlanPortEntry * port() const
const MacAddress & mac() const
const std::string & port_name() const
const KSyncVxlanBridgeEntry * bridge() const
void set_bridge_obj(KSyncVxlanBridgeObject *obj)
void set_vrf_obj(KSyncVxlanVrfObject *obj)
void set_port_obj(KSyncVxlanPortObject *obj)
AgentRouteTable * GetBridgeRouteTable() const
static void MacToStr(char *buff, const MacAddress &mac)
static void Execute(const string &str)
#define LOG(_Level, _Msg)