OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
service_instance.cc File Reference
#include <sstream>
#include "service_instance.h"
#include "ifmap/ifmap_node.h"
#include "schema/vnc_cfg_types.h"
#include "oper/ifmap_dependency_manager.h"
#include "oper/operdb_init.h"
#include <cfg/cfg_init.h>
#include <cmn/agent.h>
#include <init/agent_param.h>
#include <oper/agent_sandesh.h>
#include <oper/agent_types.h>
#include "oper/instance_manager.h"
Include dependency graph for service_instance.cc:

Go to the source code of this file.

Classes

class  ServiceInstanceCreate
 
class  ServiceInstanceTypesMapping
 

Functions

static uuid IdPermsGetUuid (const autogen::IdPermsType &id)
 
static bool IsNodeType (IFMapNode *node, const char *node_typename)
 
static IFMapNodeFindAndSetVirtualMachine (DBGraph *graph, IFMapNode *si_node, ServiceInstance::Properties *properties)
 
static IFMapNodeFindNetworkIpam (DBGraph *graph, IFMapNode *vn_ipam_node)
 
static IFMapNodeFindNetwork (DBGraph *graph, IFMapNode *vmi_node)
 
static std::string FindInterfaceIp (DBGraph *graph, IFMapNode *vmi_node)
 
static bool SubNetContainsIpv4 (const autogen::IpamSubnetType &subnet, const std::string &ip)
 
static void FindAndSetInterfaces (DBGraph *graph, IFMapNode *vm_node, autogen::ServiceInstance *svc_instance, ServiceInstance::Properties *properties)
 
static void FindAndSetTypes (DBGraph *graph, IFMapNode *si_node, ServiceInstance::Properties *properties)
 
static void FindAndSetLoadbalancer (ServiceInstance::Properties *properties)
 
static int compare_kvps (const std::vector< autogen::KeyValuePair > &lhs, const std::vector< autogen::KeyValuePair > &rhs)
 
template<typename Type >
static int compare (const Type &lhs, const Type &rhs)
 
void InstanceKvpsDiffString (const std::vector< autogen::KeyValuePair > &lhs, const std::vector< autogen::KeyValuePair > &rhs, std::stringstream *ss)
 

Function Documentation

template<typename Type >
static int compare ( const Type &  lhs,
const Type &  rhs 
)
static

Definition at line 405 of file service_instance.cc.

static int compare_kvps ( const std::vector< autogen::KeyValuePair > &  lhs,
const std::vector< autogen::KeyValuePair > &  rhs 
)
static

Definition at line 366 of file service_instance.cc.

static void FindAndSetInterfaces ( DBGraph graph,
IFMapNode vm_node,
autogen::ServiceInstance *  svc_instance,
ServiceInstance::Properties properties 
)
static

Definition at line 171 of file service_instance.cc.

Here is the call graph for this function:

static void FindAndSetLoadbalancer ( ServiceInstance::Properties properties)
static

Definition at line 313 of file service_instance.cc.

static void FindAndSetTypes ( DBGraph graph,
IFMapNode si_node,
ServiceInstance::Properties properties 
)
static

Definition at line 275 of file service_instance.cc.

Here is the call graph for this function:

static IFMapNode* FindAndSetVirtualMachine ( DBGraph graph,
IFMapNode si_node,
ServiceInstance::Properties properties 
)
static

Definition at line 97 of file service_instance.cc.

Here is the call graph for this function:

static std::string FindInterfaceIp ( DBGraph graph,
IFMapNode vmi_node 
)
static

Definition at line 141 of file service_instance.cc.

Here is the call graph for this function:

static IFMapNode* FindNetwork ( DBGraph graph,
IFMapNode vmi_node 
)
static

Definition at line 126 of file service_instance.cc.

Here is the call graph for this function:

static IFMapNode* FindNetworkIpam ( DBGraph graph,
IFMapNode vn_ipam_node 
)
static

Definition at line 114 of file service_instance.cc.

Here is the call graph for this function:

static uuid IdPermsGetUuid ( const autogen::IdPermsType &  id)
static

Definition at line 82 of file service_instance.cc.

Here is the call graph for this function:

void InstanceKvpsDiffString ( const std::vector< autogen::KeyValuePair > &  lhs,
const std::vector< autogen::KeyValuePair > &  rhs,
std::stringstream *  ss 
)

Definition at line 488 of file service_instance.cc.

static bool IsNodeType ( IFMapNode node,
const char *  node_typename 
)
static

Definition at line 88 of file service_instance.cc.

Here is the call graph for this function:

static bool SubNetContainsIpv4 ( const autogen::IpamSubnetType &  subnet,
const std::string &  ip 
)
static

Definition at line 154 of file service_instance.cc.