diff options
author | Guangtong Cao <guangtong.cao@oracle.com> | 2021-06-13 15:51:10 -0700 |
---|---|---|
committer | Guangtong Cao <guangtong.cao@oracle.com> | 2021-06-13 15:51:10 -0700 |
commit | 8260b60afefc691d57e339f1537638b4eaabec08 (patch) | |
tree | f6ab41ba3024ae02d6766672ff9b989e4120a7cc /cmd | |
parent | 11eea493bebd9a211f4be6fcc07749f908cab50e (diff) |
Add support for encapsulation tunnel type in the extended community support in gobgp policy.
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/gobgp/global.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd/gobgp/global.go b/cmd/gobgp/global.go index 024654ac..6bc58d0c 100644 --- a/cmd/gobgp/global.go +++ b/cmd/gobgp/global.go @@ -206,6 +206,8 @@ func encapParser(args []string) ([]bgp.ExtendedCommunityInterface, error) { typ = bgp.TUNNEL_TYPE_MPLS_IN_UDP case "vxlan-gre": typ = bgp.TUNNEL_TYPE_VXLAN_GRE + case "geneve": + typ = bgp.TUNNEL_TYPE_GENEVE default: return nil, fmt.Errorf("invalid encap type") } |