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
*/
4
5
#ifndef vnsw_agent_resource_cmn_hpp
6
#define vnsw_agent_resource_cmn_hpp
7
8
class
ResourceTable
;
9
class
ResourceManager
;
10
class
IndexResourceTable
;
11
// This Class is to Create the Resource Table
12
// based on type of the Index requested.
13
class
Resource
{
14
public
:
15
enum
Type
{
16
INVALID
= 0,
17
MPLS_INDEX
,
18
INTERFACE_INDEX
,
19
VRF_INDEX
,
20
QOS_INDEX
,
21
BGP_AS_SERVICE_INDEX
,
22
MIRROR_INDEX
,
23
MAX
24
};
25
26
static
ResourceTable
*
Create
(
Type
type
,
ResourceManager
*rm);
27
28
private
:
29
Resource
() { }
30
virtual
~Resource
() { }
31
};
32
33
#endif
IndexResourceTable
Definition:
index_resource.h:41
ResourceManager
Definition:
resource_manager.h:21
ResourceTable
Definition:
resource_table.h:67
Resource
Definition:
resource_cmn.h:13
Resource::Resource
Resource()
Definition:
resource_cmn.h:29
Resource::Create
static ResourceTable * Create(Type type, ResourceManager *rm)
Definition:
resource_cmn.cc:16
Resource::Type
Type
Definition:
resource_cmn.h:15
Resource::MPLS_INDEX
@ MPLS_INDEX
Definition:
resource_cmn.h:17
Resource::MIRROR_INDEX
@ MIRROR_INDEX
Definition:
resource_cmn.h:22
Resource::BGP_AS_SERVICE_INDEX
@ BGP_AS_SERVICE_INDEX
Definition:
resource_cmn.h:21
Resource::VRF_INDEX
@ VRF_INDEX
Definition:
resource_cmn.h:19
Resource::INVALID
@ INVALID
Definition:
resource_cmn.h:16
Resource::MAX
@ MAX
Definition:
resource_cmn.h:23
Resource::INTERFACE_INDEX
@ INTERFACE_INDEX
Definition:
resource_cmn.h:18
Resource::QOS_INDEX
@ QOS_INDEX
Definition:
resource_cmn.h:20
Resource::~Resource
virtual ~Resource()
Definition:
resource_cmn.h:30
type
uint8_t type
Definition:
load_balance.h:2
contrail
controller
src
vnsw
agent
resource_manager
resource_cmn.h
Generated by
1.9.1