From 192480fc7127ce0f266407cecceb00703807bbca Mon Sep 17 00:00:00 2001 From: Artur Makutunowicz Date: Thu, 17 Jan 2019 10:28:23 -0800 Subject: Add experimental BGP-LS feature --- cmd/gobgp/common.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'cmd') diff --git a/cmd/gobgp/common.go b/cmd/gobgp/common.go index 8fa31fc8..066cc66c 100644 --- a/cmd/gobgp/common.go +++ b/cmd/gobgp/common.go @@ -292,6 +292,10 @@ var ( Afi: api.Family_AFI_OPAQUE, Safi: api.Family_SAFI_KEY_VALUE, } + ls = &api.Family{ + Afi: api.Family_AFI_LS, + Safi: api.Family_SAFI_LS, + } ) func checkAddressFamily(def *api.Family) (*api.Family, error) { @@ -330,6 +334,8 @@ func checkAddressFamily(def *api.Family) (*api.Family, error) { f = l2VPNflowspec case "opaque": f = opaque + case "ls", "linkstate", "bgpls": + f = ls case "": f = def default: -- cgit v1.2.3