OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
resource_cmn.cc
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2016 Juniper Networks, Inc. All rights reserved.
3  */
4 
5 #include <boost/uuid/uuid_io.hpp>
6 #include <cmn/agent_cmn.h>
7 #include <cmn/agent.h>
11 
12 //Include various data types and derivatives
15 
17  switch (type) {
18  case MPLS_INDEX:
19  case INTERFACE_INDEX:
20  case VRF_INDEX:
21  case QOS_INDEX:
23  case MIRROR_INDEX:
24  return new IndexResourceTable(rm);
25  default: {
26  assert(0);
27  }
28  };
29  return NULL;
30 }
static ResourceTable * Create(Type type, ResourceManager *rm)
Definition: resource_cmn.cc:16
uint8_t type
Definition: load_balance.h:109