summaryrefslogtreecommitdiffhomepage
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rw-r--r--cmd/gobgp/common.go6
1 files changed, 6 insertions, 0 deletions
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: