OpenSDN source code
types.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2015 Juniper Networks, Inc. All rights reserved.
3
*/
4
5
#ifndef SRC_BGP_EXTENDED_COMMUNITY_TYPES_H_
6
#define SRC_BGP_EXTENDED_COMMUNITY_TYPES_H_
7
8
struct
BgpExtendedCommunityType
{
9
enum
type
{
10
TwoOctetAS
= 0x00,
11
IPv4Address
= 0x01,
12
FourOctetAS
= 0x02,
13
Opaque
= 0x03,
14
Evpn
= 0x06,
15
Experimental
= 0x80,
16
Experimental4ByteAs
= 0x82,
17
ExperimentalNonTransitive
= 0xC0,
18
};
19
};
20
21
struct
BgpExtendedCommunitySubType
{
22
enum
SubType
{
23
RouteTarget
= 0x02,
24
RouteOrigin
= 0x03,
25
SourceAS
= 0x09,
26
VrfRouteImport
= 0x0B,
27
SubCluster
= 0x85,
28
};
29
};
30
31
struct
BgpExtendedCommunityOpaqueSubType
{
32
enum
SubType
{
33
TunnelEncap
= 0x0C,
34
DefaultGateway
= 0x0D,
35
LoadBalance
= 0xAA,
// TBA
36
};
37
};
38
39
struct
BgpExtendedCommunityEvpnSubType
{
40
enum
SubType
{
41
MacMobility
= 0x00,
42
EsiMplsLabel
= 0x01,
43
EsImport
= 0x02,
44
RouterMac
= 0x03,
45
ETree
= 0x05,
46
MulticastFlags
= 0x09,
47
};
48
};
49
50
struct
BgpExtendedCommunityExperimentalSubType
{
51
enum
SubType
{
52
OriginVn
= 0x71,
53
SgId
= 0x04,
54
Tag
= 0x84,
55
};
56
};
57
58
struct
BgpExtendedCommunityExperimentalNonTransitiveSubType
{
59
enum
SubType
{
60
LocalSequenceNumber
= 0x00,
61
};
62
};
63
64
#endif
// SRC_BGP_EXTENDED_COMMUNITY_TYPES_H_
DefaultGateway
Definition:
default_gateway.h:15
ETree
Definition:
etree.h:16
EsImport
Definition:
es_import.h:17
LoadBalance
Definition:
load_balance.h:41
LocalSequenceNumber
Definition:
local_sequence_number.h:16
MacMobility
Definition:
mac_mobility.h:16
MulticastFlags
Definition:
multicast_flags.h:15
OriginVn
Definition:
origin_vn.h:16
RouteTarget
Definition:
rtarget_address.h:16
RouterMac
Definition:
router_mac.h:17
SubCluster
Definition:
sub_cluster.h:17
Tag
Definition:
bgp/extended-community/tag.h:15
TunnelEncap
Definition:
tunnel_encap.h:17
VrfRouteImport
Definition:
vrf_route_import.h:17
BgpExtendedCommunityEvpnSubType
Definition:
types.h:39
BgpExtendedCommunityEvpnSubType::SubType
SubType
Definition:
types.h:40
BgpExtendedCommunityEvpnSubType::EsiMplsLabel
@ EsiMplsLabel
Definition:
types.h:42
BgpExtendedCommunityExperimentalNonTransitiveSubType
Definition:
types.h:58
BgpExtendedCommunityExperimentalNonTransitiveSubType::SubType
SubType
Definition:
types.h:59
BgpExtendedCommunityExperimentalSubType
Definition:
types.h:50
BgpExtendedCommunityExperimentalSubType::SubType
SubType
Definition:
types.h:51
BgpExtendedCommunityExperimentalSubType::SgId
@ SgId
Definition:
types.h:53
BgpExtendedCommunityOpaqueSubType
Definition:
types.h:31
BgpExtendedCommunityOpaqueSubType::SubType
SubType
Definition:
types.h:32
BgpExtendedCommunitySubType
Definition:
types.h:21
BgpExtendedCommunitySubType::SubType
SubType
Definition:
types.h:22
BgpExtendedCommunitySubType::SourceAS
@ SourceAS
Definition:
types.h:25
BgpExtendedCommunitySubType::RouteOrigin
@ RouteOrigin
Definition:
types.h:24
BgpExtendedCommunityType
Definition:
types.h:8
BgpExtendedCommunityType::type
type
Definition:
types.h:9
BgpExtendedCommunityType::Evpn
@ Evpn
Definition:
types.h:14
BgpExtendedCommunityType::Opaque
@ Opaque
Definition:
types.h:13
BgpExtendedCommunityType::Experimental4ByteAs
@ Experimental4ByteAs
Definition:
types.h:16
BgpExtendedCommunityType::IPv4Address
@ IPv4Address
Definition:
types.h:11
BgpExtendedCommunityType::ExperimentalNonTransitive
@ ExperimentalNonTransitive
Definition:
types.h:17
BgpExtendedCommunityType::Experimental
@ Experimental
Definition:
types.h:15
BgpExtendedCommunityType::TwoOctetAS
@ TwoOctetAS
Definition:
types.h:10
BgpExtendedCommunityType::FourOctetAS
@ FourOctetAS
Definition:
types.h:12
contrail
controller
src
bgp
extended-community
types.h
Generated by
1.9.1