summaryrefslogtreecommitdiff
path: root/interface-definitions/include/bgp
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-05-09 19:42:58 +0200
committerChristian Poessinger <christian@poessinger.com>2021-05-09 19:42:58 +0200
commitf4f081cefcc560cbcc5640b098f3172ff006e15a (patch)
tree1f3618167d65a37ffa573ad9a1d5afaa069340f9 /interface-definitions/include/bgp
parent100614ab3a96b5325da08c76c8db2f4cae93396a (diff)
downloadvyos-1x-f4f081cefcc560cbcc5640b098f3172ff006e15a.tar.gz
vyos-1x-f4f081cefcc560cbcc5640b098f3172ff006e15a.zip
bgp: xml: T2771: add filter-list building block
Diffstat (limited to 'interface-definitions/include/bgp')
-rw-r--r--interface-definitions/include/bgp/afi-common-flowspec.xml.i26
-rw-r--r--interface-definitions/include/bgp/afi-common.xml.i24
-rw-r--r--interface-definitions/include/bgp/afi-filter-list.xml.i25
3 files changed, 28 insertions, 47 deletions
diff --git a/interface-definitions/include/bgp/afi-common-flowspec.xml.i b/interface-definitions/include/bgp/afi-common-flowspec.xml.i
index 9582274d1..819e5cbb5 100644
--- a/interface-definitions/include/bgp/afi-common-flowspec.xml.i
+++ b/interface-definitions/include/bgp/afi-common-flowspec.xml.i
@@ -1,27 +1,5 @@
-<!-- included start from bgp-afi-common-flowspec.xml.i -->
-<node name="filter-list">
- <properties>
- <help>as-path-list to filter route updates to/from this peer</help>
- </properties>
- <children>
- <leafNode name="export">
- <properties>
- <help>As-path-list to filter outgoing route updates to this peer</help>
- <completionHelp>
- <path>policy as-path-list</path>
- </completionHelp>
- </properties>
- </leafNode>
- <leafNode name="import">
- <properties>
- <help>As-path-list to filter incoming route updates from this peer</help>
- <completionHelp>
- <path>policy as-path-list</path>
- </completionHelp>
- </properties>
- </leafNode>
- </children>
-</node>
+<!-- include start from bgp/afi-common-flowspec.xml.i -->
+#include <include/bgp/afi-filter-list.xml.i>
#include <include/bgp/afi-route-map.xml.i>
#include <include/bgp/afi-route-reflector-client.xml.i>
#include <include/bgp/afi-route-server-client.xml.i>
diff --git a/interface-definitions/include/bgp/afi-common.xml.i b/interface-definitions/include/bgp/afi-common.xml.i
index ac4a3fca0..20b0dda66 100644
--- a/interface-definitions/include/bgp/afi-common.xml.i
+++ b/interface-definitions/include/bgp/afi-common.xml.i
@@ -75,29 +75,7 @@
</leafNode>
</children>
</node>
-<node name="filter-list">
- <properties>
- <help>as-path-list to filter route updates to/from this peer</help>
- </properties>
- <children>
- <leafNode name="export">
- <properties>
- <help>As-path-list to filter outgoing route updates to this peer</help>
- <completionHelp>
- <path>policy as-path-list</path>
- </completionHelp>
- </properties>
- </leafNode>
- <leafNode name="import">
- <properties>
- <help>As-path-list to filter incoming route updates from this peer</help>
- <completionHelp>
- <path>policy as-path-list</path>
- </completionHelp>
- </properties>
- </leafNode>
- </children>
-</node>
+#include <include/bgp/afi-filter-list.xml.i>
<leafNode name="maximum-prefix">
<properties>
<help>Maximum number of prefixes to accept from this peer</help>
diff --git a/interface-definitions/include/bgp/afi-filter-list.xml.i b/interface-definitions/include/bgp/afi-filter-list.xml.i
new file mode 100644
index 000000000..df7619a1a
--- /dev/null
+++ b/interface-definitions/include/bgp/afi-filter-list.xml.i
@@ -0,0 +1,25 @@
+<!-- include start from bgp/afi-filter-list.xml.i -->
+<node name="filter-list">
+ <properties>
+ <help>as-path-list to filter route updates to/from this peer</help>
+ </properties>
+ <children>
+ <leafNode name="export">
+ <properties>
+ <help>As-path-list to filter outgoing route updates to this peer</help>
+ <completionHelp>
+ <path>policy as-path-list</path>
+ </completionHelp>
+ </properties>
+ </leafNode>
+ <leafNode name="import">
+ <properties>
+ <help>As-path-list to filter incoming route updates from this peer</help>
+ <completionHelp>
+ <path>policy as-path-list</path>
+ </completionHelp>
+ </properties>
+ </leafNode>
+ </children>
+</node>
+<!-- include end -->