From 80ff3a325cbced352489fa4ea4b570e5f08062ef Mon Sep 17 00:00:00 2001 From: JieJhih Jhang Date: Sat, 23 Mar 2019 21:52:06 +0800 Subject: support BMP sysName and sysDescr configuration --- tools/pyang_plugins/README.rst | 2 +- tools/pyang_plugins/gobgp.yang | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/pyang_plugins/README.rst b/tools/pyang_plugins/README.rst index 910330d4..4c2636c8 100644 --- a/tools/pyang_plugins/README.rst +++ b/tools/pyang_plugins/README.rst @@ -37,4 +37,4 @@ Generate config/bgp_configs.go from yang files:: $HOME/public/release/models/bgp/openconfig-bgp.yang \ $HOME/public/release/models/policy/openconfig-routing-policy.yang \ $GOBGP_PATH/tools/pyang_plugins/gobgp.yang \ - | gofmt > $GOBGP_PATH/config/bgp_configs.go + | gofmt > $GOBGP_PATH/internal/pkg/config/bgp_configs.go diff --git a/tools/pyang_plugins/gobgp.yang b/tools/pyang_plugins/gobgp.yang index 9379f6d5..5677ae32 100644 --- a/tools/pyang_plugins/gobgp.yang +++ b/tools/pyang_plugins/gobgp.yang @@ -590,6 +590,18 @@ module gobgp { "Enable feature for mirroring of received BGP messages mainly for debugging purpose"; } + + leaf sys-name { + type string; + description + "Reference to the SysName of the BMP server"; + } + + leaf sys-descr { + type string; + description + "Reference to the SysDescr of the BMP server"; + } } grouping gobgp-bmp-server-set { -- cgit v1.2.3