summaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2015-09-23 11:58:53 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-09-25 18:17:06 +0900
commit8adeda1ad84b61090f6f46509e8a0eef5e4fec77 (patch)
tree760fa8030313b374cc9c56239f3817ec84fc0824 /tools
parent92bfac20656fc30fb767bfbabf333671aa7a77f8 (diff)
config: add mpls label range configuration
you can specify mpls label range from which gobgpd automatically assign to vpn routes like below ``` [Global] As = 65000 RouterId = "192.168.255.1" [Global.MplsLabelRange] MinLabel = 1000 MaxLabel = 1999 ``` default values (min:16000, max:1048575) is taken from cisco ios xr. Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'tools')
-rw-r--r--tools/pyang_plugins/gobgp.yang13
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/pyang_plugins/gobgp.yang b/tools/pyang_plugins/gobgp.yang
index aff25752..c1107ea6 100644
--- a/tools/pyang_plugins/gobgp.yang
+++ b/tools/pyang_plugins/gobgp.yang
@@ -641,4 +641,17 @@ module bgp-gobgp {
}
}
}
+
+ augment "/bgp:bgp/bgp:global" {
+ container mpls-label-range {
+ description "mpls labal range";
+
+ leaf min-label {
+ type uint32;
+ }
+ leaf max-label {
+ type uint32;
+ }
+ }
+ }
}