From 6dadc1900d29788035a3bce5bb42eaf499ca2a83 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Tue, 12 Jan 2021 21:21:48 +0100 Subject: bgp: T2387: single-source xml templates to improve reusability --- .../include/accel-mtu-128-16384.xml.i | 20 +- .../include/bgp-afi-capability-orf.xml.i | 28 ++ interface-definitions/include/bgp-afi-common.xml.i | 243 ++++++++++ .../include/bgp-afi-ipv4-prefix-list.xml.i | 25 + .../include/bgp-afi-ipv6-capability-dynamic.xml.i | 9 + .../include/bgp-afi-ipv6-nexthop-local.xml.i | 15 + .../include/bgp-afi-ipv6-prefix-list.xml.i | 25 + .../include/bgp-afi-peer-group.xml.i | 7 + interface-definitions/include/bgp-capability.xml.i | 21 + .../include/bgp-description.xml.i | 8 + .../bgp-disable-capability-negotiation.xml.i | 8 + .../include/bgp-disable-connected-check.xml.i | 8 + .../include/bgp-ebgp-multihop.xml.i | 14 + interface-definitions/include/bgp-local-as.xml.i | 22 + .../include/bgp-neighbor-afi-ipv4-unicast.xml.i | 274 +---------- .../include/bgp-neighbor-afi-ipv6-unicast.xml.i | 321 +------------ .../include/bgp-override-capability.xml.i | 8 + interface-definitions/include/bgp-passive.xml.i | 8 + interface-definitions/include/bgp-password.xml.i | 7 + .../include/bgp-peer-group-afi-ipv4-unicast.xml.i | 290 +----------- .../include/bgp-peer-group-afi-ipv6-unicast.xml.i | 310 +------------ interface-definitions/include/bgp-peer-group.xml.i | 7 + interface-definitions/include/bgp-remote-as.xml.i | 27 ++ interface-definitions/include/bgp-route-map.xml.i | 10 + interface-definitions/include/bgp-shutdown.xml.i | 8 + .../include/bgp-timers-holdtime.xml.i | 18 + .../include/bgp-timers-keepalive.xml.i | 14 + .../include/bgp-ttl-security.xml.i | 21 + .../include/bgp-update-source.xml.i | 28 ++ interface-definitions/protocols-bgp.xml.in | 502 ++------------------- 30 files changed, 658 insertions(+), 1648 deletions(-) create mode 100644 interface-definitions/include/bgp-afi-capability-orf.xml.i create mode 100644 interface-definitions/include/bgp-afi-common.xml.i create mode 100644 interface-definitions/include/bgp-afi-ipv4-prefix-list.xml.i create mode 100644 interface-definitions/include/bgp-afi-ipv6-capability-dynamic.xml.i create mode 100644 interface-definitions/include/bgp-afi-ipv6-nexthop-local.xml.i create mode 100644 interface-definitions/include/bgp-afi-ipv6-prefix-list.xml.i create mode 100644 interface-definitions/include/bgp-afi-peer-group.xml.i create mode 100644 interface-definitions/include/bgp-capability.xml.i create mode 100644 interface-definitions/include/bgp-description.xml.i create mode 100644 interface-definitions/include/bgp-disable-capability-negotiation.xml.i create mode 100644 interface-definitions/include/bgp-disable-connected-check.xml.i create mode 100644 interface-definitions/include/bgp-ebgp-multihop.xml.i create mode 100644 interface-definitions/include/bgp-local-as.xml.i create mode 100644 interface-definitions/include/bgp-override-capability.xml.i create mode 100644 interface-definitions/include/bgp-passive.xml.i create mode 100644 interface-definitions/include/bgp-password.xml.i create mode 100644 interface-definitions/include/bgp-peer-group.xml.i create mode 100644 interface-definitions/include/bgp-remote-as.xml.i create mode 100644 interface-definitions/include/bgp-route-map.xml.i create mode 100644 interface-definitions/include/bgp-shutdown.xml.i create mode 100644 interface-definitions/include/bgp-timers-holdtime.xml.i create mode 100644 interface-definitions/include/bgp-timers-keepalive.xml.i create mode 100644 interface-definitions/include/bgp-ttl-security.xml.i create mode 100644 interface-definitions/include/bgp-update-source.xml.i diff --git a/interface-definitions/include/accel-mtu-128-16384.xml.i b/interface-definitions/include/accel-mtu-128-16384.xml.i index 7ee483056..6bd089823 100644 --- a/interface-definitions/include/accel-mtu-128-16384.xml.i +++ b/interface-definitions/include/accel-mtu-128-16384.xml.i @@ -1,9 +1,11 @@ - - - Maximum Transmission Unit (MTU) - default 1492 - - - - - 1492 - + + + + Maximum Transmission Unit (MTU) - default 1492 + + + + + 1492 + + diff --git a/interface-definitions/include/bgp-afi-capability-orf.xml.i b/interface-definitions/include/bgp-afi-capability-orf.xml.i new file mode 100644 index 000000000..9bd265f93 --- /dev/null +++ b/interface-definitions/include/bgp-afi-capability-orf.xml.i @@ -0,0 +1,28 @@ + + + + Advertise ORF capability to this peer + + + + + Advertise prefix-list ORF capability to this peer + + + + + Capability to receive the ORF + + + + + + Capability to send the ORF + + + + + + + + diff --git a/interface-definitions/include/bgp-afi-common.xml.i b/interface-definitions/include/bgp-afi-common.xml.i new file mode 100644 index 000000000..ea4eea591 --- /dev/null +++ b/interface-definitions/include/bgp-afi-common.xml.i @@ -0,0 +1,243 @@ + + + + Accept route that contains the local-as in the as-path + + + + + Number of occurrences of AS number + + u32:1-10 + Number of times AS is allowed in path + + + + + + + + + + + AS for routes sent to this peer to be the local AS + + + + + + BGP attributes are sent unchanged + + + + + Send AS path unchanged + + + + + + Send multi-exit discriminator unchanged + + + + + + Send nexthop unchanged + + + + + + + + Disable sending community attributes to this peer + + + + + Disable sending extended community attributes to this peer + + + + + + Disable sending standard community attributes to this peer + + + + + + + + Originate default route to this peer + + + + + route-map to specify criteria of the default route + + policy route-map + + + + + + + + Access-list to filter route updates to/from this peer-group + + + + + Access-list to filter outgoing route updates to this peer-group + + policy access-list + + + u32:1-65535 + Access-list to filter outgoing route updates to this peer-group + + + + + + + + + Access-list to filter incoming route updates from this peer-group + + policy access-list + + + u32:1-65535 + Access-list to filter incoming route updates from this peer-group + + + + + + + + + + + as-path-list to filter route updates to/from this peer + + + + + As-path-list to filter outgoing route updates to this peer + + policy as-path-list + + + + + + As-path-list to filter incoming route updates from this peer + + policy as-path-list + + + + + + + + Maximum number of prefixes to accept from this peer + + u32:1-4294967295 + Prefix limit + + + + + + + + + Disable the next hop calculation for this peer + + + + + Set the next hop to self for reflected routes + + + + + + + + Remove private AS numbers from AS path in outbound route updates + + + + + + Route-map to filter route updates to/from this peer + + + + + Route-map to filter outgoing route updates + + policy route-map + + + + + + Route-map to filter incoming route updates + + policy route-map + + + + + + + + Peer is a route reflector client + + + + + + Peer is a route server client + + + + + + Soft reconfiguration for peer + + + + + Enable inbound soft reconfiguration + + + + + + + + Route-map to selectively unsuppress suppressed routes + + + + + + Default weight for routes from this peer + + u32:1-65535 + Default weight + + + + + + + diff --git a/interface-definitions/include/bgp-afi-ipv4-prefix-list.xml.i b/interface-definitions/include/bgp-afi-ipv4-prefix-list.xml.i new file mode 100644 index 000000000..bbbada6bd --- /dev/null +++ b/interface-definitions/include/bgp-afi-ipv4-prefix-list.xml.i @@ -0,0 +1,25 @@ + + + + IPv4-Prefix-list to filter route updates to/from this peer + + + + + IPv4-Prefix-list to filter outgoing route updates to this peer + + policy prefix-list + + + + + + IPv4-Prefix-list to filter incoming route updates from this peer + + policy prefix-list + + + + + + diff --git a/interface-definitions/include/bgp-afi-ipv6-capability-dynamic.xml.i b/interface-definitions/include/bgp-afi-ipv6-capability-dynamic.xml.i new file mode 100644 index 000000000..4bb5fa626 --- /dev/null +++ b/interface-definitions/include/bgp-afi-ipv6-capability-dynamic.xml.i @@ -0,0 +1,9 @@ + + + + + Advertise dynamic capability to this neighbor + + + + diff --git a/interface-definitions/include/bgp-afi-ipv6-nexthop-local.xml.i b/interface-definitions/include/bgp-afi-ipv6-nexthop-local.xml.i new file mode 100644 index 000000000..4778b392f --- /dev/null +++ b/interface-definitions/include/bgp-afi-ipv6-nexthop-local.xml.i @@ -0,0 +1,15 @@ + + + + Nexthop attributes + + + + + Leave link-local nexthop unchanged for this peer + + + + + + diff --git a/interface-definitions/include/bgp-afi-ipv6-prefix-list.xml.i b/interface-definitions/include/bgp-afi-ipv6-prefix-list.xml.i new file mode 100644 index 000000000..8ae7837e9 --- /dev/null +++ b/interface-definitions/include/bgp-afi-ipv6-prefix-list.xml.i @@ -0,0 +1,25 @@ + + + + Prefix-list to filter route updates to/from this peer + + + + + Prefix-list to filter outgoing route updates to this peer + + policy prefix-list6 + + + + + + Prefix-list to filter incoming route updates from this peer + + policy prefix-list6 + + + + + + diff --git a/interface-definitions/include/bgp-afi-peer-group.xml.i b/interface-definitions/include/bgp-afi-peer-group.xml.i new file mode 100644 index 000000000..c98a91030 --- /dev/null +++ b/interface-definitions/include/bgp-afi-peer-group.xml.i @@ -0,0 +1,7 @@ + + + + Peer group used for this neighbor + + + diff --git a/interface-definitions/include/bgp-capability.xml.i b/interface-definitions/include/bgp-capability.xml.i new file mode 100644 index 000000000..fbec4988b --- /dev/null +++ b/interface-definitions/include/bgp-capability.xml.i @@ -0,0 +1,21 @@ + + + + Advertise capabilities to this peer-group + + + + + Advertise dynamic capability to this peer-group + + + + + + Advertise extended-nexthop capability to this neighbor + + + + + + diff --git a/interface-definitions/include/bgp-description.xml.i b/interface-definitions/include/bgp-description.xml.i new file mode 100644 index 000000000..81be8fb97 --- /dev/null +++ b/interface-definitions/include/bgp-description.xml.i @@ -0,0 +1,8 @@ + + + + Description for this peer-group + + + + diff --git a/interface-definitions/include/bgp-disable-capability-negotiation.xml.i b/interface-definitions/include/bgp-disable-capability-negotiation.xml.i new file mode 100644 index 000000000..a43c6e8b9 --- /dev/null +++ b/interface-definitions/include/bgp-disable-capability-negotiation.xml.i @@ -0,0 +1,8 @@ + + + + Disable capability negotiation with this neighbor + + + + diff --git a/interface-definitions/include/bgp-disable-connected-check.xml.i b/interface-definitions/include/bgp-disable-connected-check.xml.i new file mode 100644 index 000000000..bb9098bf6 --- /dev/null +++ b/interface-definitions/include/bgp-disable-connected-check.xml.i @@ -0,0 +1,8 @@ + + + + Disable check to see if eBGP peer address is a connected route + + + + diff --git a/interface-definitions/include/bgp-ebgp-multihop.xml.i b/interface-definitions/include/bgp-ebgp-multihop.xml.i new file mode 100644 index 000000000..6459fcf47 --- /dev/null +++ b/interface-definitions/include/bgp-ebgp-multihop.xml.i @@ -0,0 +1,14 @@ + + + + Allow this EBGP neighbor to not be on a directly connected network + + u32:1-255 + Number of hops + + + + + + + diff --git a/interface-definitions/include/bgp-local-as.xml.i b/interface-definitions/include/bgp-local-as.xml.i new file mode 100644 index 000000000..cf55ce476 --- /dev/null +++ b/interface-definitions/include/bgp-local-as.xml.i @@ -0,0 +1,22 @@ + + + + Local AS number [REQUIRED] + + u32:1-4294967294 + Local AS number + + + + + + + + + Disable prepending local-as to updates from EBGP peers + + + + + + diff --git a/interface-definitions/include/bgp-neighbor-afi-ipv4-unicast.xml.i b/interface-definitions/include/bgp-neighbor-afi-ipv4-unicast.xml.i index c5a83f045..8f6cf06b1 100644 --- a/interface-definitions/include/bgp-neighbor-afi-ipv4-unicast.xml.i +++ b/interface-definitions/include/bgp-neighbor-afi-ipv4-unicast.xml.i @@ -4,283 +4,17 @@ IPv4 BGP neighbor parameters - - - Accept a IPv4-route that contains the local-AS in the as-path - - - - - Number of occurrences of AS number - - u32:1-10 - Number of times AS is allowed in path - - - - - - - - - - - AS for routes sent to this neighbor to be the local AS - - - - - - BGP attributes are sent unchanged (IPv4) - - - - - Send AS path unchanged (IPv4) - - - - - - Send multi-exit discriminator unchanged (IPv4) - - - - - - Send nexthop unchanged (IPv4) - - - - - Advertise capabilities to this neighbor (IPv4) - - - Advertise ORF capability to this neighbor - - - - - Advertise prefix-list ORF capability to this neighbor - - - - - Capability to receive the ORF - - - - - - Capability to send the ORF - - - - - - - - - - - - Send default IPv4-route to this neighbor - - - - - IPv4-Route-map to specify criteria of the default - - policy route-map - - - - - - - - Access-list to filter IPv4-route updates to/from this neighbor - - - - - Access-list to filter outgoing IPv4-route updates to this neighbor - - policy access-list - - - u32:1-65535 - Access-list to filter outgoing IPv4-route updates to this neighbor - - - - - - - - - Access-list to filter incoming IPv4-route updates from this neighbor - - policy access-list - - - u32:1-65535 - Access-list to filter incoming IPv4-route updates from this neighbor - - - - - - + #include - - - As-path-list to filter IPv4-route updates to/from this neighbor - - - - - As-path-list to filter outgoing IPv4-route updates to this neighbor - - policy as-path-list - - - - - - As-path-list to filter incoming IPv4-route updates from this neighbor - - policy as-path-list - - - - - - - - Maximum number of IPv4-prefixes to accept from this neighbor - - u32:1-4294967295 - Prefix limit - - - - - - - - - Nexthop for IPv4-routes sent to this neighbor to be the local router - - - - - Set the next hop to self for reflected routes - - - - - - - - IPv4-Prefix-list to filter route updates to/from this neighbor - - - - - IPv4-Prefix-list to filter outgoing route updates to this neighbor - - policy prefix-list - - - - - - IPv4-Prefix-list to filter incoming route updates from this neighbor - - policy prefix-list - - - - - - - - Remove private AS numbers from AS path in outbound IPv4-route updates - - - - - - Route-map to filter IPv4-route updates to/from this neighbor - - - - - IPv4-Route-map to filter outgoing route updates to this neighbor - - policy route-map - - - - - - IPv4-Route-map to filter incoming route updates from this neighbor - - policy route-map - - - - - - - - Neighbor as a IPv4-route reflector client - - - - - - Neighbor is IPv4-route server client - - - - - - Soft reconfiguration for neighbor (IPv4) - - - - - Inbound soft reconfiguration for this neighbor [REQUIRED] - - - - - - - - Route-map to selectively unsuppress suppressed IPv4-routes - - - - - Default weight for routes from this neighbor - - u32:1-65535 - Weight for routes from this neighbor - - - - - - + #include + #include + #include diff --git a/interface-definitions/include/bgp-neighbor-afi-ipv6-unicast.xml.i b/interface-definitions/include/bgp-neighbor-afi-ipv6-unicast.xml.i index 61cdc6a1c..c7a6f8035 100644 --- a/interface-definitions/include/bgp-neighbor-afi-ipv6-unicast.xml.i +++ b/interface-definitions/include/bgp-neighbor-afi-ipv6-unicast.xml.i @@ -4,328 +4,19 @@ IPv6 BGP neighbor parameters - - - Accept a IPv6-route that contains the local-AS in the as-path - - - - - Number of occurrences of AS number - - u32:1-10 - Number of times AS is allowed in path - - - - - - - - - - - AS for routes sent to this neighbor to be the local AS - - - - - - BGP attributes are sent unchanged - - - - - Send AS path unchanged - - - - - - Send multi-exit discriminator unchanged - - - - - - Send nexthop unchanged - - - - - Advertise capabilities to this neighbor (IPv6) - - - - Advertise dynamic capability to this neighbor - - - - - - Advertise ORF capability to this neighbor - - - - - Advertise prefix-list ORF capability to this neighbor - - - - - Capability to receive the ORF - - - - - - Capability to send the ORF - - - - - - - - - - - - Send default IPv6-route to this neighbor - - - - - Route-map to specify criteria of the default - - policy route-map - - - - - - - - Disable sending community attributes to this neighbor - - - - - Disable sending extended community attributes to this neighbor - - - - - - Disable sending standard community attributes to this neighbor - - - - - - - - Access-list to filter route updates to/from this neighbor - - - - - Access-list to filter outgoing route updates to this neighbor - - policy access-list6 - - - u32:1-65535 - Access-list to filter outgoing route updates to this neighbor - - - - - - - - - Access-list to filter incoming route updates from this neighbor - - policy access-list6 - - - u32:1-65535 - Access-list to filter incoming route updates from this neighbor - - - - - - + #include + #include - - - As-path-list to filter route updates to/from this neighbor - - - - - As-path-list to filter outgoing route updates to this neighbor - - policy as-path-list - - - - - - As-path-list to filter incoming route updates from this neighbor - - policy as-path-list - - - - - - - - Maximum number of prefixes to accept from this neighbor - - u32:1-4294967295 - Prefix limit - - - - - - - - - Nexthop attributes - - - - - Leave link-local nexthop unchanged for this peer - - - - - - - - Nexthop for IPv6-routes sent to this neighbor to be the local router - - - - - Set the next hop to self for reflected routes - - - - - - - - IPv6 peer group for this peer - - - - - Prefix-list to filter route updates to/from this neighbor - - - - - Prefix-list to filter outgoing route updates to this neighbor - - policy prefix-list6 - - - - - - Prefix-list to filter incoming route updates from this neighbor - - policy prefix-list6 - - - - - - - - Remove private AS numbers from AS path in outbound route updates - - - - - - Route-map to filter route updates to/from this neighbor - - - - - Route-map to filter outgoing route updates to this neighbor - - policy route-map - - - - - - Route-map to filter incoming route updates from this neighbor - - policy route-map - - - - - - - - Neighbor as a IPv6-route reflector client - - - - - - Neighbor is IPv6-route server client - - - - - - Soft reconfiguration for neighbor (IPv6) - - - - - Inbound soft reconfiguration for this neighbor [REQUIRED] - - - - - - - - Route-map to selectively unsuppress suppressed IPv6-routes - - - - - - Default weight for routes from this neighbor - - u32:1-65535 - Weight for routes from this neighbor - - - - - - + #include + #include + #include + #include diff --git a/interface-definitions/include/bgp-override-capability.xml.i b/interface-definitions/include/bgp-override-capability.xml.i new file mode 100644 index 000000000..88c277c8b --- /dev/null +++ b/interface-definitions/include/bgp-override-capability.xml.i @@ -0,0 +1,8 @@ + + + + Ignore capability negotiation with specified neighbor + + + + diff --git a/interface-definitions/include/bgp-passive.xml.i b/interface-definitions/include/bgp-passive.xml.i new file mode 100644 index 000000000..ada961866 --- /dev/null +++ b/interface-definitions/include/bgp-passive.xml.i @@ -0,0 +1,8 @@ + + + + Do not initiate a session with this neighbor + + + + diff --git a/interface-definitions/include/bgp-password.xml.i b/interface-definitions/include/bgp-password.xml.i new file mode 100644 index 000000000..5b68a2d71 --- /dev/null +++ b/interface-definitions/include/bgp-password.xml.i @@ -0,0 +1,7 @@ + + + + BGP MD5 password + + + diff --git a/interface-definitions/include/bgp-peer-group-afi-ipv4-unicast.xml.i b/interface-definitions/include/bgp-peer-group-afi-ipv4-unicast.xml.i index e34d9f774..cfa68e5f0 100644 --- a/interface-definitions/include/bgp-peer-group-afi-ipv4-unicast.xml.i +++ b/interface-definitions/include/bgp-peer-group-afi-ipv4-unicast.xml.i @@ -4,300 +4,16 @@ IPv4 BGP peer group parameters - - - Accept a route that contains the local-AS in the as-path - - - - - Number of occurrences of AS number - - u32:1-10 - Number of times AS is allowed in path - - - - - - - - - - - BGP attributes are sent unchanged - - - - - Send AS path unchanged - - - - - - Send multi-exit discriminator unchanged - - - - - - Send nexthop unchanged - - - - - Advertise capabilities to this peer-group - - - Advertise dynamic capability to this peer-group - - - - - - Advertise ORF capability to this peer-group - - - - - Advertise prefix-list ORF capability to this peer-group - - - - - Capability to receive the ORF - - - - - - Capability to send the ORF - - - - - - - - - - - - Send default route to this peer-group - - - - - Route-map to specify criteria of the default - - - - - - - Disable sending community attributes to this peer-group - - - - - Disable sending extended community attributes to this peer-group - - - - - - Disable sending standard community attributes to this peer-group - - - - - - - - Access-list to filter route updates to/from this peer-group - - - - - Access-list to filter outgoing route updates to this peer-group - - policy access-list - - - u32:1-65535 - Access-list to filter outgoing route updates to this peer-group - - - - - - - - - Access-list to filter incoming route updates from this peer-group - - policy access-list - - - u32:1-65535 - Access-list to filter incoming route updates from this peer-group - - - - - - - - - - - As-path-list to filter route updates to/from this peer-group - - - - - As-path-list to filter outgoing route updates to this peer-group - - policy as-path-list - - - - - - As-path-list to filter incoming route updates from this peer-group - - policy as-path-list - - - - - - - - Maximum number of prefixes to accept from this peer-group - - u32:1-4294967295 - Prefix limit - - - - - - - - - Nexthop for routes sent to this peer-group to be the local router - - - - - Set the next hop to self for reflected routes - - - - - - - - Prefix-list to filter route updates to/from this peer-group - - - - - Prefix-list to filter outgoing route updates to this peer-group - - policy prefix-list - - - - - - Prefix-list to filter incoming route updates from this peer-group - - policy prefix-list - - - + #include - - - Remove private AS numbers from AS path in outbound route updates - - - - - - Route-map to filter route updates to/from this peer-group - - - - - Route-map to filter outgoing route updates to this peer-group - - policy route-map - - - - - - Route-map to filter incoming route updates from this peer-group - - policy route-map - - - - - - - - Peer-group as a route reflector client - - - - - - Peer-group as route server client - - - - - - Soft reconfiguration for peer-group - - - - - Inbound soft reconfiguration for this peer-group [REQUIRED] - - - - - - - - Route-map to selectively unsuppress suppressed routes - - - - - - Default weight for routes from this peer-group - - u32:1-65535 - Weight for routes from this peer-group - - - - - - + #include + #include diff --git a/interface-definitions/include/bgp-peer-group-afi-ipv6-unicast.xml.i b/interface-definitions/include/bgp-peer-group-afi-ipv6-unicast.xml.i index 400193b7b..a062820ea 100644 --- a/interface-definitions/include/bgp-peer-group-afi-ipv6-unicast.xml.i +++ b/interface-definitions/include/bgp-peer-group-afi-ipv6-unicast.xml.i @@ -1,319 +1,21 @@ - IPv6 BGP neighbor parameters + IPv6 BGP peer group parameters - - - Accept a IPv6-route that contains the local-AS in the as-path - - - - - Number of occurrences of AS number - - u32:1-10 - Number of times AS is allowed in path - - - - - - - - - - - BGP attributes are sent unchanged - - - - - Send AS path unchanged - - - - - - Send multi-exit discriminator unchanged - - - - - - Send nexthop unchanged - - - - - Advertise capabilities to this peer-group - - - Advertise dynamic capability to this peer-group - - - - - - Advertise ORF capability to this peer-group - - - - - Advertise prefix-list ORF capability to this peer-group - - - - - Capability to receive the ORF - - - - - - Capability to send the ORF - - - - - - - - - - - - Send default route to this peer-group - - - - - Route-map to specify criteria of the default - - policy route-map - - - - - - - - Disable sending community attributes to this peer-group - - - - - Disable sending extended community attributes to this peer-group - - - - - - Disable sending standard community attributes to this peer-group - - - + #include + #include - - - Access-list to filter route updates to/from this peer-group - - - - - Access-list to filter outgoing route updates to this peer-group - - policy access-list6 - - - u32:1-65535 - Access-list to filter outgoing route updates to this peer-group - - - - - - - - - Access-list to filter incoming route updates from this peer-group - - policy access-list6 - - - u32:1-65535 - Access-list to filter incoming route updates from this peer-group - - - - - - - - - - - As-path-list to filter route updates to/from this peer-group - - - - - As-path-list to filter outgoing route updates to this peer-group - - policy as-path-list - - - - - - As-path-list to filter incoming route updates from this peer-group - - policy as-path-list - - - - - - - - Maximum number of prefixes to accept from this peer-group - - u32:1-4294967295 - Prefix limit - - - - - - - - - Nexthop attributes - - - - - Leave link-local nexthop unchanged for this peer - - - - - - - - Nexthop for routes sent to this peer-group to be the local router - - - - - Set the next hop to self for reflected routes - - - - - - - - Prefix-list to filter route updates to/from this peer-group - - - - - Prefix-list to filter outgoing route updates to this peer-group - - policy prefix-list6 - - - - - - Prefix-list to filter incoming route updates from this peer-group - - policy prefix-list6 - - - - - - - - Remove private AS numbers from AS path in outbound route updates - - - - - - Route-map to filter route updates to/from this peer-group - - - - - Route-map to filter outgoing route updates to this peer-group - - policy route-map - - - - - - Route-map to filter incoming route updates from this peer-group - - policy route-map - - - - - - - - Peer-group as a route reflector client - - - - - - Peer-group as route server client - - - - - - Soft reconfiguration for peer-group - - - - - Inbound soft reconfiguration for this peer-group [REQUIRED] - - - - - - - - Route-map to selectively unsuppress suppressed routes - - - - - - Default weight for routes from this peer-group - - u32:1-65535 - Weight for routes from this peer-group - - - - - - + #include + #include + #include diff --git a/interface-definitions/include/bgp-peer-group.xml.i b/interface-definitions/include/bgp-peer-group.xml.i new file mode 100644 index 000000000..24585c1ce --- /dev/null +++ b/interface-definitions/include/bgp-peer-group.xml.i @@ -0,0 +1,7 @@ + + + + Peer group for this peer + + + diff --git a/interface-definitions/include/bgp-remote-as.xml.i b/interface-definitions/include/bgp-remote-as.xml.i new file mode 100644 index 000000000..de3f4d2ad --- /dev/null +++ b/interface-definitions/include/bgp-remote-as.xml.i @@ -0,0 +1,27 @@ + + + + Neighbor BGP AS number [REQUIRED] + + external internal + + + u32:1-4294967294 + Neighbor AS number + + + external + Any AS different from the local AS + + + internal + Neighbor AS number + + + + ^(external|internal)$ + + Invalid AS number + + + diff --git a/interface-definitions/include/bgp-route-map.xml.i b/interface-definitions/include/bgp-route-map.xml.i new file mode 100644 index 000000000..18b092354 --- /dev/null +++ b/interface-definitions/include/bgp-route-map.xml.i @@ -0,0 +1,10 @@ + + + + Route-map to modify route attributes + + policy route-map + + + + diff --git a/interface-definitions/include/bgp-shutdown.xml.i b/interface-definitions/include/bgp-shutdown.xml.i new file mode 100644 index 000000000..330120bba --- /dev/null +++ b/interface-definitions/include/bgp-shutdown.xml.i @@ -0,0 +1,8 @@ + + + + Administratively shut down peer-group + + + + diff --git a/interface-definitions/include/bgp-timers-holdtime.xml.i b/interface-definitions/include/bgp-timers-holdtime.xml.i new file mode 100644 index 000000000..09924574b --- /dev/null +++ b/interface-definitions/include/bgp-timers-holdtime.xml.i @@ -0,0 +1,18 @@ + + + + BGP hold timer for this neighbor + + u32:1-65535 + Hold timer in seconds + + + 0 + Hold timer disabled + + + + + + + diff --git a/interface-definitions/include/bgp-timers-keepalive.xml.i b/interface-definitions/include/bgp-timers-keepalive.xml.i new file mode 100644 index 000000000..7d294c9d6 --- /dev/null +++ b/interface-definitions/include/bgp-timers-keepalive.xml.i @@ -0,0 +1,14 @@ + + + + BGP keepalive interval for this neighbor + + u32:1-65535 + Keepalive interval in seconds (default 60) + + + + + + + diff --git a/interface-definitions/include/bgp-ttl-security.xml.i b/interface-definitions/include/bgp-ttl-security.xml.i new file mode 100644 index 000000000..3f4d1786d --- /dev/null +++ b/interface-definitions/include/bgp-ttl-security.xml.i @@ -0,0 +1,21 @@ + + + + Ttl security mechanism + + + + + Number of the maximum number of hops to the BGP peer + + u32:1-254 + Number of hops + + + + + + + + + diff --git a/interface-definitions/include/bgp-update-source.xml.i b/interface-definitions/include/bgp-update-source.xml.i new file mode 100644 index 000000000..c1db2e2c1 --- /dev/null +++ b/interface-definitions/include/bgp-update-source.xml.i @@ -0,0 +1,28 @@ + + + + + Source IP of routing updates + + + + + ipv4 + IPv4 address of route source + + + ipv6 + IPv6 address of route source + + + txt + Interface as route source + + + + + ^(br|bond|dum|en|eth|gnv|peth|tun|vti|vxlan|wg|wlan)[0-9]+|lo$ + + + + diff --git a/interface-definitions/protocols-bgp.xml.in b/interface-definitions/protocols-bgp.xml.in index c6f56ac1c..b9f67f188 100644 --- a/interface-definitions/protocols-bgp.xml.in +++ b/interface-definitions/protocols-bgp.xml.in @@ -59,14 +59,7 @@ - - - Route-map to modify route attributes - - policy route-map - - - + #include @@ -167,14 +160,7 @@ - - - Route-map to modify route attributes - - policy route-map - - - + #include @@ -282,7 +268,7 @@ - (br|bond|dum|en|eth|gnv|peth|tun|vti|vxlan|wg|wlan)[0-9]+|lo + ^(br|bond|dum|en|eth|gnv|peth|tun|vti|vxlan|wg|wlan)[0-9]+|lo$ @@ -320,42 +306,10 @@ - - - Advertise capabilities to this neighbor - - - - - Advertise dynamic capability to this neighbor - - - - - - Advertise extended-nexthop capability to this neighbor - - - - - - - - Description for this neighbor - - - - - Disable capability negotiation with this neighbor - - - - - - Disable check to see if eBGP peer address is a connected route - - - + #include + #include + #include + #include Disable sending community attributes to this neighbor (IPv4) @@ -375,134 +329,30 @@ - - - Allow this EBGP neighbor to not be on a directly connected network - - u32:1-255 - Number of hops - - - - - - + #include Interface parameters - - - Peer group for this peer - - - - - Neighbor BGP AS number [REQUIRED] - - external internal - - - u32:1-4294967294 - Neighbor AS number - - - external - Any AS different from the local AS - - - internal - Neighbor AS number - - - - (external|internal) - - Invalid ASN value - - + #include + #include Enable BGP with v6 link-local only - - - Peer group for this peer - - - - - Neighbor BGP AS number [REQUIRED] - - external internal - - - u32:1-4294967294 - Neighbor AS number - - - external - Any AS different from the local AS - - - internal - Neighbor AS number - - - - (external|internal) - - Invalid ASN value - - + #include + #include - - - Local AS number - - u32:1-4294967294 - Local AS number - - - - - - - - - Disable prepending local-as to updates from EBGP peers - - - - - - - - Ignore capability negotiation with specified neighbor - - - - - - Do not initiate a session with this neighbor - - - - - - BGP MD5 password - - - - - IPv4 peer group for this peer - - + #include + #include + #include + #include + #include Neighbor BGP port @@ -515,37 +365,8 @@ - - - Neighbor BGP AS number [REQUIRED] - - external internal - - - u32:1-4294967294 - Neighbor AS number - - - external - Any AS different from the local AS - - - internal - Neighbor AS number - - - - (external|internal) - - Invalid ASN value - - - - - Administratively shut down neighbor - - - + #include + #include Enable strict capability negotiation @@ -573,78 +394,12 @@ - - - BGP hold timer for this neighbor - - u32:1-65535 - Hold timer in seconds - - - 0 - Hold timer disabled - - - - - - - - - BGP keepalive interval for this neighbor - - u32:1-65535 - Keepalive interval in seconds (default 60) - - - - - - - - - - - Ttl security mechanism for this BGP peer - - - - - Number of the maximum number of hops to the BGP peer - - u32:1-254 - Number of hops - - - - - - + #include + #include - - - - Source IP of routing updates - - ipv4 - IPv4 address of route source - - - ipv6 - IPv6 address of route source - - - txt - Interface as route source - - - - - (br|bond|dum|en|eth|gnv|peth|tun|vti|vxlan|wg|wlan)[0-9]+|lo - - - + #include + #include @@ -997,208 +752,29 @@ - - - Advertise capabilities to this peer-group - - - - - Advertise dynamic capability to this peer-group - - - - - - Advertise extended-nexthop capability to this neighbor - - - - - - - - Description for this peer-group - - - - - - Disable capability negotiation with this peer-group - - - - - - Disable check to see if eBGP peer address is a connected route - - - - - - Allow this EBGP peer-group to not be on a directly connected network - - u32:1-255 - Number of hops - - - - - - - - - Local AS number [REQUIRED] - - u32:1-4294967294 - Local AS number - - - - - - - - - Disable prepending local-as to updates from EBGP peers - - - - - - - - Ignore capability negotiation with specified peer-group - - - - - - Do not intiate a session with this peer-group - - - - - - BGP MD5 password - - - - - Neighbor BGP AS number [REQUIRED] - - external internal - - - u32:1-4294967294 - Neighbor AS number - - - external - Any AS different from the local AS - - - internal - Neighbor AS number - - - - (external|internal) - - Invalid ASN value - - - - - Administratively shut down peer-group - - - - - - Ttl security mechanism - - - - - Number of the maximum number of hops to the BGP peer - - u32:1-254 - Number of hops - - - - - - - - - - - - Source IP of routing updates - - ipv4 - IPv4 address of route source - - - ipv6 - IPv6 address of route source - - - txt - Interface as route source - - - - - (br|bond|dum|en|eth|gnv|peth|tun|vti|vxlan|wg|wlan)[0-9]+|lo - - - + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include - - - Filter routes installed in local route map - - policy route-map - - - + #include BGP protocol timers - - - BGP holdtime interval - - u32:4-65535 - Hold-time in seconds (default 180) - - - 0 - Do not hold routes - - - - - - - - - Keepalive interval - - u32:1-65535 - Keep-alive time in seconds (default 60) - - - - - - + #include + #include -- cgit v1.2.3