OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
vm_interface_index.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2016 Juniper Networks, Inc. All rights reserved.
3  */
4 
5 #ifndef vnsw_agent_interface_index_resource_hpp
6 #define vnsw_agent_interface_index_resource_hpp
7 
8 /*
9  * interface index allocator using index_vector
10  */
11 #include <oper/interface.h>
14 
15 class ResourceManager;
16 class ResourceKey;
17 // Vm interface backup.
19 public:
21  const boost::uuids::uuid &uuid,
22  const std::string &interface_name);
24  virtual void Backup(ResourceData *data, uint16_t op);
25  virtual bool IsLess(const ResourceKey &rhs) const;
26 private:
28  std::string interface_name_;
29 };
30 #endif
virtual void Backup(ResourceData *data, uint16_t op)
boost::uuids::uuid uuid
ResourceManager * rm()
virtual bool IsLess(const ResourceKey &rhs) const
VmInterfaceIndexResourceKey(ResourceManager *rm, const boost::uuids::uuid &uuid, const std::string &interface_name)