summaryrefslogtreecommitdiff
path: root/interface-definitions/include/bgp
diff options
context:
space:
mode:
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 -->