From a22f8cb4c77f3f8ba9f7206b50ba13be09c6164f Mon Sep 17 00:00:00 2001 From: Peter Hill Date: Mon, 5 Aug 2019 12:58:25 -0700 Subject: Added CLI option to parser to allow setting MPLSoUDP (mpls-in-udp) as an encap type. --- cmd/gobgp/global.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cmd') 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: -- cgit v1.2.3