diff options
author | Valli A. Vallimamod <vma@sip.solutions> | 2020-07-29 17:48:48 +0200 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@gmail.com> | 2020-11-10 22:17:26 +0900 |
commit | c595b561669e55103fc043a807e0d13e82990be8 (patch) | |
tree | 0d1b9a0dee4c5ece83624d65c7ed07a26bbd30aa /api/attribute.proto | |
parent | 9a5c7f32d305b0a8bbe2af984d9be0d9c7dc3688 (diff) |
api: adds LS attributes to LsAddrPrefix
Includes `gobgp.LsNLRI` attibutes to `api.LsAddrPrefix` so that they are
distributed to all derived types (LsNodeNLRI, LsPrefixV4NLRI, and LsPrefixV6NLRI)
Diffstat (limited to 'api/attribute.proto')
-rw-r--r-- | api/attribute.proto | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/api/attribute.proto b/api/attribute.proto index acbffdf0..ef8249bd 100644 --- a/api/attribute.proto +++ b/api/attribute.proto @@ -309,16 +309,29 @@ enum LsNLRIType { LS_NLRI_PREFIX_V6 = 4; } +enum LsProtocolID { + LS_PROTOCOL_UNKNOWN = 0; + LS_PROTOCOL_ISIS_L1 = 1; + LS_PROTOCOL_ISIS_L2 = 2; + LS_PROTOCOL_OSPF_V2 = 3; + LS_PROTOCOL_DIRECT = 4; + LS_PROTOCOL_STATIC = 5; + LS_PROTOCOL_OSPF_V3 = 6; +} + // LsAddrPrefix represents the NLRI for: // - AFI=16388, SAFI=71 message LsAddrPrefix { LsNLRIType type = 1; + uint32 length = 2; + LsProtocolID protocol_id = 3; + uint64 identifier = 4; // One of: // - LsNodeNLRI // - LsLinkNLRI // - LsPrefixV4NLRI // - LsPrefixV6NLRI - google.protobuf.Any nlri = 2; + google.protobuf.Any nlri = 5; } message MpReachNLRIAttribute { @@ -651,4 +664,4 @@ message PrefixSID { // - SRv6L3ServiceTLV Type 5 // - SRv6L2ServiceTLV Type 6 (not yet implemented) repeated google.protobuf.Any tlvs = 1; -}
\ No newline at end of file +} |