5 #ifndef vnsw_agent_sandesh_h_
6 #define vnsw_agent_sandesh_h_
29 bool Add(
const std::string &key,
const std::string &val);
30 bool Add(
const std::string &key,
int val);
31 bool Del(
const std::string &key);
32 bool Get(
const std::string &key, std::string *val)
const;
33 std::string
GetString(
const std::string &key)
const;
34 bool Get(
const std::string &key,
int *val)
const;
35 int GetInt(
const std::string &key)
const;
37 int Encode(std::string *str);
38 int Decode(
const std::string &str);
54 PageRequest(
const std::string &key,
const std::string &context) :
71 void AddPageRequest(
const std::string &key,
const std::string &context);
117 int last,
int end,
int count,
int page_size);
145 const std::string &u,
const std::string &vxlan_id,
146 const std::string &ipam_name);
187 const std::string &name,
const std::string &u,
188 const std::string &vn,
const std::string &mac,
189 const std::string &v4,
const std::string &v6,
190 const std::string &parent,
const std::string &ip_active,
191 const std::string &ip6_active,
192 const std::string &l2_active);
225 const std::string &nh_index,
const std::string &policy_enabled);
244 const std::string &label);
365 bool stale, std::string mac)
521 const std::string &name,
const std::string &
id);
537 const std::string &name,
const std::string &idx);
553 const std::string &name,
const std::string &
id);
569 const std::string &name);
585 const std::string &name);
601 const std::string &name);
617 const std::string &
uuid)
640 const std::string &
uuid)
boost::asio::ip::address_v6 Ip6Address
boost::asio::ip::address_v4 Ip4Address
class boost::shared_ptr< AgentSandesh > AgentSandeshPtr
bool UpdateResp(DBEntryBase *entry)
DBTable * AgentGetTable()
AgentAclSandesh(std::string context, std::string name)
DBTable * AgentGetTable()
AgentBridgeRtSandesh(VrfEntry *vrf, std::string context, std::string name, bool stale, std::string mac)
bool UpdateResp(DBEntryBase *entry)
virtual bool FilterToArgs(AgentSandeshArguments *args)
bool UpdateResp(DBEntryBase *entry)
DBTable * AgentGetTable()
virtual bool Filter(const DBEntryBase *entry)
AgentCryptTunnelSandesh(const std::string &context, const std::string &name)
AgentEvpnRtSandesh(VrfEntry *vrf, std::string context, std::string name, bool stale)
bool UpdateResp(DBEntryBase *entry)
DBTable * AgentGetTable()
virtual bool FilterToArgs(AgentSandeshArguments *args)
DBTable * AgentGetTable()
virtual bool Filter(const DBEntryBase *entry)
AgentHealthCheckSandesh(const std::string &context, const std::string &u)
~AgentHealthCheckSandesh()
AgentInet4McRtSandesh(VrfEntry *vrf, std::string context, std::string name, Ip4Address src_addr, Ip4Address grp_addr, bool stale)
DBTable * AgentGetTable()
bool UpdateResp(DBEntryBase *entry)
AgentInet4McRtSandesh(VrfEntry *vrf, std::string context, std::string name, bool stale)
bool UpdateResp(DBEntryBase *entry)
AgentInet4MplsUcRtSandesh(VrfEntry *vrf, std::string context, bool stale)
DBTable * AgentGetTable()
AgentInet4MplsUcRtSandesh(VrfEntry *vrf, std::string context, Ip4Address addr, uint8_t plen, bool stale)
AgentInet4UcRtSandesh(VrfEntry *vrf, std::string context, bool stale)
bool UpdateResp(DBEntryBase *entry)
DBTable * AgentGetTable()
AgentInet4UcRtSandesh(VrfEntry *vrf, std::string context, Ip4Address addr, uint8_t plen, bool stale)
bool UpdateResp(DBEntryBase *entry)
AgentInet6UcRtSandesh(VrfEntry *vrf, std::string context, bool stale)
AgentInet6UcRtSandesh(VrfEntry *vrf, std::string context, Ip6Address addr, uint8_t plen, bool stale)
DBTable * AgentGetTable()
virtual bool Filter(const DBEntryBase *entry)
std::string ip6_active_str_
DBTable * AgentGetTable()
std::string l2_active_str_
std::string ip_active_str_
virtual bool FilterToArgs(AgentSandeshArguments *args)
std::string parent_uuid_str_
boost::uuids::uuid parent_uuid_
AgentIntfSandesh(const std::string &context, const std::string &type, const std::string &name, const std::string &u, const std::string &vn, const std::string &mac, const std::string &v4, const std::string &v6, const std::string &parent, const std::string &ip_active, const std::string &ip6_active, const std::string &l2_active)
AgentLayer2RtSandesh(VrfEntry *vrf, std::string context, std::string name, bool stale)
DBTable * AgentGetTable()
bool UpdateResp(DBEntryBase *entry)
DBTable * AgentGetTable()
AgentLoadBalancerSandesh(std::string context, std::string uuid)
DBTable * AgentGetTable()
AgentLoadBalancerV2Sandesh(std::string context, std::string uuid)
AgentMirrorSandesh(const std::string &context, const std::string &analyzer_name)
virtual bool Filter(const DBEntryBase *entry)
friend class MirrorEntryReq
std::string analyzer_name_
DBTable * AgentGetTable()
virtual bool FilterToArgs(AgentSandeshArguments *args)
DBTable * AgentGetTable()
AgentMplsSandesh(const std::string &context, const std::string &type, const std::string &label)
virtual bool FilterToArgs(AgentSandeshArguments *args)
virtual bool Filter(const DBEntryBase *entry)
bool UpdateResp(DBEntryBase *entry)
AgentMulticastPolicySandesh(const std::string &context, const std::string &uuid)
DBTable * AgentGetTable()
AgentNhSandesh(const std::string &context, const std::string &type, const std::string &nh_index, const std::string &policy_enabled)
virtual bool Filter(const DBEntryBase *entry)
virtual bool FilterToArgs(AgentSandeshArguments *args)
DBTable * AgentGetTable()
std::string policy_enabled_
bool UpdateResp(DBEntryBase *entry)
AgentPolicySetSandesh(const std::string &context, const std::string &uuid, const std::string &name)
virtual bool Filter(const DBEntryBase *entry)
DBTable * AgentGetTable()
virtual bool FilterToArgs(AgentSandeshArguments *args)
DBTable * AgentGetTable()
AgentQosConfigSandesh(const std::string &context, const std::string &u, const std::string &name, const std::string &id)
virtual bool Filter(const DBEntryBase *entry)
virtual bool FilterToArgs(AgentSandeshArguments *args)
std::map< std::string, std::string > ArgumentMap
bool Add(const std::string &key, const std::string &val)
int GetInt(const std::string &key) const
bool Del(const std::string &key)
bool Get(const std::string &key, std::string *val) const
DISALLOW_COPY_AND_ASSIGN(AgentSandeshArguments)
int Decode(const std::string &str)
int Encode(std::string *str)
std::string GetString(const std::string &key) const
AgentSandeshManager(Agent *agent)
bool Run(PageRequest req)
void AddPageRequest(const std::string &key, const std::string &context)
DISALLOW_COPY_AND_ASSIGN(AgentSandeshManager)
WorkQueue< PageRequest > page_request_queue_
virtual bool FilterToArgs(AgentSandeshArguments *args)
void DoSandeshInternal(AgentSandeshPtr sandesh, int start, int count)
static const uint8_t entries_per_sandesh
virtual bool UpdateResp(DBEntryBase *entry)
AgentSandesh(const std::string &context)
virtual bool Filter(const DBEntryBase *entry)
static const uint16_t kEntriesPerPage
virtual DBTable * AgentGetTable()=0
AgentSandesh(const std::string &context, const std::string &name)
void SandeshDone(AgentSandeshPtr ptr, int first, int page_size, DBTable::DBTableWalkRef walk_ref, DBTableBase *partition)
std::string context() const
static void DoSandesh(AgentSandeshPtr sandesh, int start, int count)
bool EntrySandesh(DBEntryBase *entry, int first, int last)
void MakeSandeshPageReq(PageReqData *req, DBTable *table, int first, int last, int end, int count, int page_size)
DISALLOW_COPY_AND_ASSIGN(AgentSandesh)
DBTableWalker::WalkId walkid_
AgentSecurityLoggingObjectSandesh(const std::string &context, const std::string &uuid)
DBTable * AgentGetTable()
DBTable * AgentGetTable()
AgentServiceInstanceSandesh(std::string context, std::string uuid)
DBTable * AgentGetTable()
AgentSgSandesh(std::string context, std::string name)
AgentVmSandesh(std::string context, std::string uuid)
DBTable * AgentGetTable()
DBTable * AgentGetTable()
AgentVnSandesh(const std::string &context, const std::string &name, const std::string &u, const std::string &vxlan_id, const std::string &ipam_name)
virtual bool FilterToArgs(AgentSandeshArguments *args)
virtual bool Filter(const DBEntryBase *entry)
AgentVrfAssignSandesh(std::string context, std::string uuid)
DBTable * AgentGetTable()
DBTable * AgentGetTable()
AgentVrfSandesh(std::string context, std::string name)
virtual bool Filter(const DBEntryBase *entry)
DBTable * AgentGetTable()
AgentVxLanSandesh(const std::string &context, const std::string &vxlan_id)
virtual bool FilterToArgs(AgentSandeshArguments *args)
BridgeDomainSandesh(const std::string &context, const std::string &u, const std::string &name)
virtual bool Filter(const DBEntryBase *entry)
DBTable * AgentGetTable()
virtual bool FilterToArgs(AgentSandeshArguments *args)
boost::intrusive_ptr< DBTableWalk > DBTableWalkRef
ForwardingClassSandesh(const std::string &context, const std::string &u, const std::string &name, const std::string &idx)
~ForwardingClassSandesh()
DBTable * AgentGetTable()
virtual bool Filter(const DBEntryBase *entry)
virtual bool FilterToArgs(AgentSandeshArguments *args)
virtual bool FilterToArgs(AgentSandeshArguments *args)
QosQueueSandesh(const std::string &context, const std::string &u, const std::string &name, const std::string &id)
DBTable * AgentGetTable()
virtual bool Filter(const DBEntryBase *entry)
PageRequest(const std::string &key, const std::string &context)
PageRequest(const PageRequest &req)