From b0c8bb556352d5953e22cc3db90fac5fdf699004 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Wed, 13 Jan 2021 18:38:31 +0100 Subject: bgp: T2174: xml cleanup, re-use more includable snippets --- .../include/bgp-afi-ipv6-capability-dynamic.xml.i | 9 ---- interface-definitions/include/bgp-bfd.xml.i | 15 ++++++ .../include/bgp-capability-dynamic.xml.i | 9 ++++ interface-definitions/include/bgp-capability.xml.i | 7 +-- .../include/bgp-neighbor-afi-ipv4-unicast.xml.i | 1 + .../include/bgp-neighbor-afi-ipv6-unicast.xml.i | 2 +- interface-definitions/protocols-bgp.xml.in | 60 ++-------------------- 7 files changed, 31 insertions(+), 72 deletions(-) delete mode 100644 interface-definitions/include/bgp-afi-ipv6-capability-dynamic.xml.i create mode 100644 interface-definitions/include/bgp-bfd.xml.i create mode 100644 interface-definitions/include/bgp-capability-dynamic.xml.i (limited to 'interface-definitions') diff --git a/interface-definitions/include/bgp-afi-ipv6-capability-dynamic.xml.i b/interface-definitions/include/bgp-afi-ipv6-capability-dynamic.xml.i deleted file mode 100644 index 4bb5fa626..000000000 --- a/interface-definitions/include/bgp-afi-ipv6-capability-dynamic.xml.i +++ /dev/null @@ -1,9 +0,0 @@ - - - - - Advertise dynamic capability to this neighbor - - - - diff --git a/interface-definitions/include/bgp-bfd.xml.i b/interface-definitions/include/bgp-bfd.xml.i new file mode 100644 index 000000000..fe52b12f2 --- /dev/null +++ b/interface-definitions/include/bgp-bfd.xml.i @@ -0,0 +1,15 @@ + + + + Enable Bidirectional Forwarding Detection (BFD) support + + + + + Allow to write CBIT independence in BFD outgoing packets and read both C-BIT value of BFD and lookup BGP peer status + + + + + + diff --git a/interface-definitions/include/bgp-capability-dynamic.xml.i b/interface-definitions/include/bgp-capability-dynamic.xml.i new file mode 100644 index 000000000..3cf300156 --- /dev/null +++ b/interface-definitions/include/bgp-capability-dynamic.xml.i @@ -0,0 +1,9 @@ + + + + + Advertise dynamic capability to this neighbor + + + + diff --git a/interface-definitions/include/bgp-capability.xml.i b/interface-definitions/include/bgp-capability.xml.i index fbec4988b..5940e46e4 100644 --- a/interface-definitions/include/bgp-capability.xml.i +++ b/interface-definitions/include/bgp-capability.xml.i @@ -4,12 +4,7 @@ Advertise capabilities to this peer-group - - - Advertise dynamic capability to this peer-group - - - + #include Advertise extended-nexthop capability to this neighbor 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 8f6cf06b1..03a859271 100644 --- a/interface-definitions/include/bgp-neighbor-afi-ipv4-unicast.xml.i +++ b/interface-definitions/include/bgp-neighbor-afi-ipv4-unicast.xml.i @@ -10,6 +10,7 @@ #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 c7a6f8035..e9ba23408 100644 --- a/interface-definitions/include/bgp-neighbor-afi-ipv6-unicast.xml.i +++ b/interface-definitions/include/bgp-neighbor-afi-ipv6-unicast.xml.i @@ -10,7 +10,7 @@ #include - #include + #include #include diff --git a/interface-definitions/protocols-bgp.xml.in b/interface-definitions/protocols-bgp.xml.in index e461fde29..f152021fb 100644 --- a/interface-definitions/protocols-bgp.xml.in +++ b/interface-definitions/protocols-bgp.xml.in @@ -293,19 +293,7 @@ - - - Enable Bidirectional Forwarding Detection (BFD) support - - - - - Allow to write CBIT independence in BFD outgoing packets and read both C-BIT value of BFD and lookup BGP peer status - - - - - + #include #include #include #include @@ -742,51 +730,11 @@ BGP peer-group address-family parameters - - - IPv4 BGP peer group parameters - - - - - Advertise capabilities to this peer-group - - - #include - #include - - - #include - #include - - - - - IPv6 BGP peer group parameters - - - - - Advertise capabilities to this peer-group - - - #include - #include - - - #include - #include - #include - - + #include + #include - - - Enable Bidirectional Forwarding Detection (BFD) support - - - + #include #include #include #include -- cgit v1.2.3