15 : ksync_obj_(obj), vrf_id_(vrf_id), mac_(mac) {
20 : ksync_obj_(obj), vrf_id_(entry->
vrf_id_), mac_(entry->
mac_) {
40 s <<
"Route Vrf : " << vrf_info <<
" Mac: " <<
mac_.
ToString();
60 KSyncRouteInfo &info)
const {
61 info.set_operation(
"DELETE");
65 info.set_type(
"BRIDGE");
84 encoder.set_h_op(sandesh_op::DEL);
85 encoder.set_rtr_rid(0);
86 encoder.set_rtr_vrf_id(
vrf_id_);
87 encoder.set_rtr_family(AF_BRIDGE);
89 std::vector<int8_t> mac((int8_t *)
mac_,
91 encoder.set_rtr_mac(mac);
92 encoder.set_rtr_replace_plen(0);
95 encode_len = encoder.WriteBinary((uint8_t *)buf, buf_len, &error);
97 assert(encode_len <= buf_len);
114 KSyncObject(
"KSync BridgeRouteTable"), ksync_(ksync) {
#define KSYNC_TRACE(obj, parent,...)
virtual ~BridgeRouteAuditKSyncObject()
KSyncEntry * Alloc(const KSyncEntry *key, uint32_t index)
KSyncObject * GetObject() const
bool IsLess(const KSyncEntry &rhs) const
void FillObjectLog(sandesh_op::type type, KSyncRouteInfo &info) const
int AddMsg(char *buf, int buf_len)
const string & GetName() const
std::string ToString() const
VrfEntry * FindVrfFromId(size_t index)
static const std::string integerToString(const NumberType &num)
int EncodeDelete(char *buf, int buf_len)
virtual ~BridgeRouteAuditKSyncEntry()
int ChangeMsg(char *buf, int buf_len)
BridgeRouteAuditKSyncObject(KSync *ksync)
BridgeRouteAuditKSyncObject * ksync_obj_
VrfTable * vrf_table() const
int DeleteMsg(char *buf, int buf_len)
std::string ToString() const
virtual KSyncEntry * UnresolvedReference()
BridgeRouteAuditKSyncEntry(BridgeRouteAuditKSyncObject *obj, uint32_t vrf_id, const MacAddress &mac)