summaryrefslogtreecommitdiffhomepage
path: root/cmd
diff options
context:
space:
mode:
authorArtur Makutunowicz <arma@linkedin.com>2019-01-17 10:28:23 -0800
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2019-01-26 12:40:45 +0900
commit192480fc7127ce0f266407cecceb00703807bbca (patch)
tree7f45576e8a12259db5d3a257180db38849abc932 /cmd
parent526bd67f5de4cf361aaab2d10456e5113899ca54 (diff)
Add experimental BGP-LS feature
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: