4 #ifndef SRC_VNSW_AGENT_OPER_PHYSICAL_DEVICE_H_
5 #define SRC_VNSW_AGENT_OPER_PHYSICAL_DEVICE_H_
10 #include <agent_types.h>
37 const std::string &name,
const std::string &vendor,
78 virtual std::string
ToString()
const;
140 const std::string &context);
156 const std::string &vrf);
158 const std::string &vrf);
160 const std::string &vrf);
168 #endif // SRC_VNSW_AGENT_OPER_PHYSICAL_DEVICE_H_
virtual bool OperDBDelete(DBEntry *entry, const DBRequest *req)
void SendObjectLog(AgentLogEvent::type event) const
virtual ~PhysicalDeviceDataBase()
ManagementProtocol protocol() const
const std::string & vendor() const
uint32_t GetRefCount() const
virtual void SetKey(const DBRequestKey *key)
void UpdateDeviceMastership(const std::string &vrf, ComponentNHList clist, bool del)
DeviceVrfMap device2vrf_map_
void UpdateIpToDevMap(IpAddress old, IpAddress new_ip, PhysicalDevice *p)
virtual KeyPtr GetDBRequestKey() const
static DBTableBase * CreateTable(DB *db, const std::string &name)
const PhysicalDeviceSet & managed_pd_set() const
std::set< boost::uuids::uuid > PhysicalDeviceSet
PhysicalDeviceKey(const boost::uuids::uuid &id)
PhysicalDeviceSet managed_pd_set_
boost::asio::ip::address IpAddress
std::pair< const boost::uuids::uuid, VrfSet > DeviceVrfPair
VrfDevicesMap vrf2devices_map_
PhysicalDevice(const boost::uuids::uuid &id)
DISALLOW_COPY_AND_ASSIGN(PhysicalDeviceTable)
virtual bool OperDBResync(DBEntry *entry, const DBRequest *req)
void RegisterDBClients(IFMapDependencyManager *dep)
const boost::uuids::uuid & uuid() const
PhysicalDeviceData(Agent *agent, const std::string &fq_name, const std::string &name, const std::string &vendor, const IpAddress &ip, const IpAddress &mgmt_ip, const std::string &protocol, IFMapNode *ifmap_node)
bool DBEntrySandesh(Sandesh *resp, std::string &name) const
void EnqueueDeviceChange(const boost::uuids::uuid &u, bool master)
std::unique_ptr< DBRequestKey > KeyPtr
virtual size_t Hash(const DBEntry *entry) const
const IpAddress & ip() const
virtual ~PhysicalDeviceTable()
virtual std::string ToString() const
virtual AgentSandeshPtr GetAgentSandesh(const AgentSandeshArguments *args, const std::string &context)
std::map< const boost::uuids::uuid, VrfSet > DeviceVrfMap
PhysicalDeviceTsnManagedData(Agent *agent, bool master)
PhysicalDevice * Find(const boost::uuids::uuid &u)
std::pair< const std::string, PhysicalDeviceSet > VrfDevicesPair
void AddDeviceToVrfEntry(const boost::uuids::uuid &u, const std::string &vrf)
virtual ~PhysicalDevice()
std::pair< IpAddress, PhysicalDevice * > IpToDevicePair
void set_master(bool value)
PhysicalDeviceKey(const boost::uuids::uuid &id, DBSubOperation sub_op)
virtual std::unique_ptr< DBEntry > AllocEntry(const DBRequestKey *k) const
virtual ~PhysicalDeviceKey()
class boost::shared_ptr< AgentSandesh > AgentSandeshPtr
bool Copy(PhysicalDeviceTable *table, const PhysicalDeviceData *data)
const std::string & name() const
bool RemoveDeviceToVrfEntry(const boost::uuids::uuid &u, const std::string &vrf)
PhysicalDeviceDataBase(Agent *agent, IFMapNode *ifmap_node)
const std::string & fq_name() const
IFMapNode * ifmap_node() const
PhysicalDevice * IpToPhysicalDevice(IpAddress ip)
std::map< const std::string, PhysicalDeviceSet > VrfDevicesMap
const Agent * agent() const
std::map< IpAddress, PhysicalDevice * > IpToDeviceMap
const IpAddress & management_ip() const
const std::string & name() const
bool ProcessConfig(IFMapNode *node, DBRequest &req, const boost::uuids::uuid &u)
virtual bool IFNodeToUuid(IFMapNode *node, boost::uuids::uuid &u)
std::vector< ComponentNHPtr > ComponentNHList
void DeleteIpToDevEntry(IpAddress ip)
virtual bool OperDBOnChange(DBEntry *entry, const DBRequest *req)
uint32_t GetRefCount() const
virtual bool IsLess(const DBEntry &rhs) const
ManagementProtocol protocol_
virtual size_t Hash(const DBRequestKey *key) const
std::set< std::string > VrfSet
DISALLOW_COPY_AND_ASSIGN(PhysicalDevice)
virtual ~PhysicalDeviceTsnManagedData()
virtual DBEntry * OperDBAdd(const DBRequest *req)
virtual ~PhysicalDeviceData()
virtual bool IFNodeToReq(IFMapNode *node, DBRequest &req, const boost::uuids::uuid &u)
void ResetDeviceMastership(const boost::uuids::uuid &u, const std::string &vrf)
PhysicalDeviceTable(DB *db, const std::string &name)