From 8adeda1ad84b61090f6f46509e8a0eef5e4fec77 Mon Sep 17 00:00:00 2001 From: ISHIDA Wataru Date: Wed, 23 Sep 2015 11:58:53 +0900 Subject: 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 --- tools/pyang_plugins/gobgp.yang | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'tools') 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; + } + } + } } -- cgit v1.2.3