diff options
author | Peter Hill <peter.j.hill@oracle.com> | 2019-08-05 12:58:25 -0700 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@gmail.com> | 2019-08-06 07:01:22 +0900 |
commit | a22f8cb4c77f3f8ba9f7206b50ba13be09c6164f (patch) | |
tree | 1f8acc460630d5bdc4e9ae3dd97290b82290ef95 /cmd | |
parent | da536952b3d12104bdcf9c0385970100b2aefe3e (diff) |
Added CLI option to parser to allow setting MPLSoUDP (mpls-in-udp) as an encap type.
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 9017c0d3..024654ac 100644 --- a/cmd/gobgp/global.go +++ b/cmd/gobgp/global.go @@ -202,6 +202,8 @@ func encapParser(args []string) ([]bgp.ExtendedCommunityInterface, error) { typ = bgp.TUNNEL_TYPE_MPLS case "mpls-in-gre": typ = bgp.TUNNEL_TYPE_MPLS_IN_GRE + case "mpls-in-udp": + typ = bgp.TUNNEL_TYPE_MPLS_IN_UDP case "vxlan-gre": typ = bgp.TUNNEL_TYPE_VXLAN_GRE default: |