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