diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2016-08-01 08:11:14 +0000 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-08-02 10:48:58 +0900 |
commit | 1890b4c5ef28fde6cff478a78e1ded3a65badd6b (patch) | |
tree | 332875e27ca4e85c3432c884dd038dc161be7dc3 /tools | |
parent | a46e8b6826fe95ff09278d75474faf7a14b5d8b1 (diff) |
config: support unnumbered bgp peering
from configuration file:
```toml
[[neighbors]]
[[neighbors.afi-safis]]
neighbor-interface = "eth0"
peer-as = 65000
```
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/pyang_plugins/gobgp.yang | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/pyang_plugins/gobgp.yang b/tools/pyang_plugins/gobgp.yang index ee158866..98d42729 100644 --- a/tools/pyang_plugins/gobgp.yang +++ b/tools/pyang_plugins/gobgp.yang @@ -655,6 +655,18 @@ module gobgp { } + augment "/bgp:bgp/bgp:neighbors/bgp:neighbor/bgp:config" { + leaf neighbor-interface { + type string; + } + } + + augment "/bgp:bgp/bgp:neighbors/bgp:neighbor/bgp:state" { + leaf neighbor-interface { + type string; + } + } + augment "/bgp:bgp/bgp:neighbors/bgp:neighbor/bgp:transport/bgp:config" { leaf remote-port { type inet:port-number; |