diff options
author | Ravi Aysola <ravi.aysola@oracle.com> | 2021-03-19 14:13:13 -0400 |
---|---|---|
committer | Ravi Aysola <ravi.aysola@oracle.com> | 2021-03-19 14:13:13 -0400 |
commit | 7ff15bfa54ac1b0ff7b03ee73e2bee4e7a3d3d73 (patch) | |
tree | c2aeae528fe0574a2a161615545461dbd454b1d9 | |
parent | dfc8ec6437ca3b41d32e7c79239f3e56363147ed (diff) |
Add GENEVE encapsulation support
-rw-r--r-- | pkg/packet/bgp/bgp.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/packet/bgp/bgp.go b/pkg/packet/bgp/bgp.go index 32649a8e..15e15362 100644 --- a/pkg/packet/bgp/bgp.go +++ b/pkg/packet/bgp/bgp.go @@ -186,6 +186,7 @@ const ( TUNNEL_TYPE_VXLAN_GRE TunnelType = 12 TUNNEL_TYPE_MPLS_IN_UDP TunnelType = 13 TUNNEL_TYPE_SR_POLICY TunnelType = 15 + TUNNEL_TYPE_GENEVE TunnelType = 19 ) func (p TunnelType) String() string { @@ -210,6 +211,8 @@ func (p TunnelType) String() string { return "mpls-in-udp" case TUNNEL_TYPE_SR_POLICY: return "sr-policy" + case TUNNEL_TYPE_GENEVE: + return "geneve" default: return fmt.Sprintf("TunnelType(%d)", uint8(p)) } @@ -10369,6 +10372,8 @@ func (e *EncapExtended) String() string { return "MPLS in UDP" case TUNNEL_TYPE_SR_POLICY: return "SR Policy" + case TUNNEL_TYPE_GENEVE: + return "GENEVE" default: return fmt.Sprintf("tunnel: %d", e.TunnelType) } |