diff options
author | IWASE Yusuke <iwase.yusuke0@gmail.com> | 2017-11-09 09:36:16 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2017-11-16 09:59:45 +0900 |
commit | 6c6cd6efad2cf0201a6bf4665e3a647cc07b6bbc (patch) | |
tree | 620f468adb0337db62805d022a820f7c140ca78a /api/gobgp.proto | |
parent | b54aa7fc46976a6f2d65c6b8d1706ebc44a83f6f (diff) |
api: Define constants for address families
To call some gRPC APIs, it is required to specify the address family
value which is combined value of AFI and SAFI values, so users of gRPC
APIs need to calculate this value.
This patch introduces the constants for the address families for the
convenience.
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
Diffstat (limited to 'api/gobgp.proto')
-rw-r--r-- | api/gobgp.proto | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/api/gobgp.proto b/api/gobgp.proto index ed9cc11b..dd58e003 100644 --- a/api/gobgp.proto +++ b/api/gobgp.proto @@ -80,6 +80,32 @@ service GobgpApi { rpc GetRibInfo(GetRibInfoRequest) returns (GetRibInfoResponse) {} } +// Constants for address families +enum Family { + _ = 0; + IPv4 = 65537; + IPv6 = 131073; + IPv4_MC = 65538; + IPv6_MC = 131074; + IPv4_MPLS = 65540; + IPv6_MPLS = 131076; + IPv4_VPN = 65664; + IPv6_VPN = 131200; + IPv4_VPN_MC = 65665; + IPv6_VPN_MC = 131201; + VPLS = 1638465; + EVPN = 1638470; + RTC = 65668; + IPv4_ENCAP = 65543; + IPv6_ENCAP = 131079; + FLOW_SPEC_IPv4 = 65669; + FLOW_SPEC_IPv6 = 131205; + FLOW_SPEC_IPv4_VPN = 65670; + FLOW_SPEC_IPv6_VPN = 131206; + FLOW_SPEC_L2_VPN = 1638534; + OPAQUE = 1074594033; +} + message GetNeighborRequest { bool enableAdvertised = 1; string address = 2; |