summaryrefslogtreecommitdiffhomepage
path: root/tools/pyang_plugins/gobgp.yang
diff options
context:
space:
mode:
authorWataru Ishida <ishida.wataru@lab.ntt.co.jp>2016-11-10 05:08:24 +0000
committerWataru Ishida <ishida.wataru@lab.ntt.co.jp>2016-11-14 02:15:35 +0000
commit926ab34220431de2561c17269d473f8fc8f33217 (patch)
tree1b3caab92f0a59adc3c8acebe4b8a31626ec8152 /tools/pyang_plugins/gobgp.yang
parentd23cea2d7c95b0d6683fbd80abcdb65e303816a4 (diff)
config: use struct type instead of []byte for capability and open msg
Signed-off-by: Wataru Ishida <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'tools/pyang_plugins/gobgp.yang')
-rw-r--r--tools/pyang_plugins/gobgp.yang21
1 files changed, 13 insertions, 8 deletions
diff --git a/tools/pyang_plugins/gobgp.yang b/tools/pyang_plugins/gobgp.yang
index 6729349d..06b545af 100644
--- a/tools/pyang_plugins/gobgp.yang
+++ b/tools/pyang_plugins/gobgp.yang
@@ -631,19 +631,24 @@ module gobgp {
uses gobgp-adjacent-table;
}
+ typedef bgp-capability {
+ type uint8;
+ }
+
+ typedef bgp-open-message {
+ type uint8;
+ }
augment "/bgp:bgp/bgp:neighbors/bgp:neighbor/bgp:state" {
- container Capabilities {
- leaf-list remote {
- type binary;
- }
- leaf-list local {
- type binary;
- }
+ leaf-list remote-capability {
+ type bgp-capability;
+ }
+ leaf-list local-capability {
+ type bgp-capability;
}
leaf received-open-message {
- type binary;
+ type bgp-open-message;
}
}