5 #include <boost/uuid/uuid_io.hpp>
18 #include <controller/controller_types.h>
21 force_chg_(false), rt_export_(), last_sequence_number_(0) {
38 return (last_sequence_number_ != sequence_number);
52 uint32_t instance_id = vrf->
rd();
69 "VRF deleted, remove state");
93 static_cast<AgentRouteTable *>
105 if (send_subscribe ==
false) {
109 if (send_subscribe && ((state->
exported_ ==
false) ||
131 if (send_subscribe &&
141 }
else if (send_subscribe &&
148 "Already subscribed");
const std::string & GetName() const
bool IsExportable(uint64_t sequence_number)
static Agent * GetInstance()
void StartRouteWalk(VrfEntry *vrf, bool associate, Type type)
DBState * GetState(DBTableBase *tbl_base, ListenerId listener) const
void SetState(DBTableBase *tbl_base, ListenerId listener, DBState *state)
const string & GetName() const
static bool IsXmppChannelActive(const Agent *agent, AgentXmppChannel *peer)
uint64_t sequence_number() const
DBTableBase::ListenerId GetVrfExportListenerId()
ControllerRouteWalker * route_walker() const
void DeleteVrfState(DBTablePartBase *partition, DBEntryBase *entry)
static const uint32_t kInvalidIndex
AgentRouteTable * GetRouteTable(uint8_t table_type) const
RouteExport * rt_export_[Agent::ROUTE_TABLE_MAX]
static RouteExport * Init(AgentRouteTable *table, AgentXmppChannel *bgp_xmpp_peer)
static void Notify(const Agent *agent, AgentXmppChannel *, DBTablePartBase *partition, DBEntryBase *e)
#define CONTROLLER_TRACE(obj,...)
bool ShouldExportRoute() const
static bool ControllerSendSubscribe(AgentXmppChannel *peer, VrfEntry *vrf, bool subscribe)
uint64_t last_sequence_number_
static bool IsBgpPeerActive(const Agent *agent, AgentXmppChannel *peer)