diff options
author | IWASE Yusuke <iwase.yusuke0@gmail.com> | 2017-06-09 15:21:38 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2017-06-23 18:13:19 +0900 |
commit | 5bb427a994989f97570ddfc7200a884e57e5530b (patch) | |
tree | 0448f2c314ab06a2b30093cf0ce83302c7a28f83 /tools | |
parent | 1747a3311c7a29a3d58a223e70e37e854460b852 (diff) |
config: Add parameters for TTL Security
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/pyang_plugins/gobgp.yang | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/tools/pyang_plugins/gobgp.yang b/tools/pyang_plugins/gobgp.yang index 0d8025e6..434d4164 100644 --- a/tools/pyang_plugins/gobgp.yang +++ b/tools/pyang_plugins/gobgp.yang @@ -653,6 +653,47 @@ module gobgp { } } + grouping gobgp-ttl-security-config { + description + "Configuration parameters for TTL Security"; + + leaf enabled { + type boolean; + default "false"; + description + "Enable features for TTL Security"; + } + + leaf ttl-min { + type uint8; + description + "Reference to the port of the BMP server"; + } + } + + grouping gobgp-ttl-security-config-set { + description + "set of configurations for Generalized TTL Security Mechanism (GTSM)"; + + container ttl-security { + description + "Configure TTL Security feature"; + + container config { + description + "Configuration parameters for TTL Security"; + uses gobgp-ttl-security-config; + } + + container state { + config false; + description + "State information for TTL Security"; + uses gobgp-ttl-security-config; + } + } + } + // augment statements augment "/bgp:bgp/bgp:neighbors/bgp:neighbor/bgp:state/bgp:messages/bgp:sent" { description "additional counters"; @@ -825,6 +866,16 @@ module gobgp { uses gobgp-route-server-config-set; } + augment "/bgp:bgp/bgp:peer-groups/bgp:peer-group" { + description "TTL Security configuration for peer-group"; + uses gobgp-ttl-security-config-set; + } + + augment "/bgp:bgp/bgp:neighbors/bgp:neighbor" { + description "TTL Security configuration for neighbor"; + uses gobgp-ttl-security-config-set; + } + augment "/bgp:bgp/bgp:global/bgp:apply-policy/bgp:config" { description "addtional policy"; uses gobgp-in-policy; |