summaryrefslogtreecommitdiffhomepage
path: root/pkg/packet/bgp/bgp.go
diff options
context:
space:
mode:
authorSerguei Bezverkhi <sbezverk@cisco.com>2020-11-29 10:07:44 -0500
committerFUJITA Tomonori <fujita.tomonori@gmail.com>2020-11-30 07:21:40 +0900
commit0422c608b302cd02b5bc3cd7063714d04c7fd595 (patch)
tree95c76f36a856bbec05972d360ba9f4bafee44651 /pkg/packet/bgp/bgp.go
parent63b958b2a7f2724121103cb37d6c9dd12bb873d1 (diff)
Code changes
Signed-off-by: Serguei Bezverkhi <sbezverk@cisco.com>
Diffstat (limited to 'pkg/packet/bgp/bgp.go')
-rw-r--r--pkg/packet/bgp/bgp.go23
1 files changed, 11 insertions, 12 deletions
diff --git a/pkg/packet/bgp/bgp.go b/pkg/packet/bgp/bgp.go
index 0976935e..63082af1 100644
--- a/pkg/packet/bgp/bgp.go
+++ b/pkg/packet/bgp/bgp.go
@@ -254,16 +254,15 @@ func (p PmsiTunnelType) String() string {
type EncapSubTLVType uint8
const (
- ENCAP_SUBTLV_TYPE_ENCAPSULATION EncapSubTLVType = 1
- ENCAP_SUBTLV_TYPE_PROTOCOL EncapSubTLVType = 2
- ENCAP_SUBTLV_TYPE_COLOR EncapSubTLVType = 4
- ENCAP_SUBTLV_TYPE_SRPREFIX_SID EncapSubTLVType = 11
- ENCAP_SUBTLV_TYPE_SRPREFERENCE EncapSubTLVType = 12
- ENCAP_SUBTLV_TYPE_SRBINDING_SID EncapSubTLVType = 13
- ENCAP_SUBTLV_TYPE_SRENLP EncapSubTLVType = 14
- ENCAP_SUBTLV_TYPE_SRPRIORITY EncapSubTLVType = 15
- ENCAP_SUBTLV_TYPE_SRSEGMENT_LIST EncapSubTLVType = 128
- ENCAP_SUBTLV_TYPE_SRPOLICY_NAME EncapSubTLVType = 129
+ ENCAP_SUBTLV_TYPE_ENCAPSULATION EncapSubTLVType = 1
+ ENCAP_SUBTLV_TYPE_PROTOCOL EncapSubTLVType = 2
+ ENCAP_SUBTLV_TYPE_COLOR EncapSubTLVType = 4
+ ENCAP_SUBTLV_TYPE_SRPREFERENCE EncapSubTLVType = 12
+ ENCAP_SUBTLV_TYPE_SRBINDING_SID EncapSubTLVType = 13
+ ENCAP_SUBTLV_TYPE_SRENLP EncapSubTLVType = 14
+ ENCAP_SUBTLV_TYPE_SRPRIORITY EncapSubTLVType = 15
+ ENCAP_SUBTLV_TYPE_SRSEGMENT_LIST EncapSubTLVType = 128
+ ENCAP_SUBTLV_TYPE_SRCANDIDATE_PATH_NAME EncapSubTLVType = 129
)
const (
@@ -11645,8 +11644,8 @@ func (t *TunnelEncapTLV) DecodeFromBytes(data []byte) error {
subTlv = &TunnelEncapSubTLVSRENLP{}
case ENCAP_SUBTLV_TYPE_SRPRIORITY:
subTlv = &TunnelEncapSubTLVSRPriority{}
- case ENCAP_SUBTLV_TYPE_SRPOLICY_NAME:
- subTlv = &TunnelEncapSubTLVSRPolicyName{}
+ case ENCAP_SUBTLV_TYPE_SRCANDIDATE_PATH_NAME:
+ subTlv = &TunnelEncapSubTLVSRCandidatePathName{}
default:
subTlv = &TunnelEncapSubTLVUnknown{
TunnelEncapSubTLV: TunnelEncapSubTLV{