summaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorJieJhih Jhang <aawer12345tw@yahoo.com.tw>2019-03-23 21:52:06 +0800
committerFUJITA Tomonori <fujita.tomonori@gmail.com>2019-03-25 20:11:44 +0900
commit80ff3a325cbced352489fa4ea4b570e5f08062ef (patch)
tree86ecd1732490a907cda674b10de71d52c4df42b0 /tools
parenta61191604194e0ab1a4500ba57ecbec5de88b2e3 (diff)
support BMP sysName and sysDescr configuration
Diffstat (limited to 'tools')
-rw-r--r--tools/pyang_plugins/README.rst2
-rw-r--r--tools/pyang_plugins/gobgp.yang12
2 files changed, 13 insertions, 1 deletions
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 {