OpenSDN source code
resource_cmn.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2016 Juniper Networks, Inc. All rights reserved.
3
* Copyright Contributors to the OpenSDN project
4
*/
5
6
#ifndef vnsw_agent_resource_cmn_hpp
7
#define vnsw_agent_resource_cmn_hpp
8
9
class
ResourceTable
;
10
class
ResourceManager
;
11
class
IndexResourceTable
;
12
// This Class is to Create the Resource Table
13
// based on type of the Index requested.
14
class
Resource
{
15
public
:
16
enum
Type
{
17
INVALID
= 0,
18
MPLS_INDEX
,
19
INTERFACE_INDEX
,
20
VRF_INDEX
,
21
QOS_INDEX
,
22
BGP_AS_SERVICE_INDEX
,
23
MIRROR_INDEX
,
24
MAX
25
};
26
27
static
ResourceTable
*
Create
(
Type
type
,
ResourceManager
*rm);
28
29
private
:
30
Resource
() { }
31
virtual
~Resource
() { }
32
};
33
34
#endif
IndexResourceTable
Definition:
index_resource.h:42
ResourceManager
Definition:
resource_manager.h:22
ResourceTable
Definition:
resource_table.h:68
Resource
Definition:
resource_cmn.h:14
Resource::Resource
Resource()
Definition:
resource_cmn.h:30
Resource::Create
static ResourceTable * Create(Type type, ResourceManager *rm)
Definition:
resource_cmn.cc:17
Resource::Type
Type
Definition:
resource_cmn.h:16
Resource::MPLS_INDEX
@ MPLS_INDEX
Definition:
resource_cmn.h:18
Resource::MIRROR_INDEX
@ MIRROR_INDEX
Definition:
resource_cmn.h:23
Resource::BGP_AS_SERVICE_INDEX
@ BGP_AS_SERVICE_INDEX
Definition:
resource_cmn.h:22
Resource::VRF_INDEX
@ VRF_INDEX
Definition:
resource_cmn.h:20
Resource::INVALID
@ INVALID
Definition:
resource_cmn.h:17
Resource::MAX
@ MAX
Definition:
resource_cmn.h:24
Resource::INTERFACE_INDEX
@ INTERFACE_INDEX
Definition:
resource_cmn.h:19
Resource::QOS_INDEX
@ QOS_INDEX
Definition:
resource_cmn.h:21
Resource::~Resource
virtual ~Resource()
Definition:
resource_cmn.h:31
type
uint8_t type
Definition:
load_balance.h:2
contrail
controller
src
vnsw
agent
resource_manager
resource_cmn.h
Generated by
1.9.1