diff options
author | Daniil Baturin <daniil@vyos.io> | 2021-01-23 17:18:14 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-23 17:18:14 +0700 |
commit | 7a7fdc561f0c1dee994db4b3d616da2631cab9f4 (patch) | |
tree | ff838b1c170d656048d6b4ab5932dbe59024b0b2 /interface-definitions/include | |
parent | ed482498b0baffe0d0c6aecefebb806f09c1f0a7 (diff) | |
parent | 4ed4d822cfd1d1aad19982783066a5e2431889b4 (diff) | |
download | vyos-1x-7a7fdc561f0c1dee994db4b3d616da2631cab9f4.tar.gz vyos-1x-7a7fdc561f0c1dee994db4b3d616da2631cab9f4.zip |
Merge pull request #694 from c-po/t3236-ospf
T3236: Rewrite of OSPF in XML and Python notation
Diffstat (limited to 'interface-definitions/include')
-rw-r--r-- | interface-definitions/include/ospf-metric-type.xml.i | 15 | ||||
-rw-r--r-- | interface-definitions/include/ospf-metric.xml.i | 21 | ||||
-rw-r--r-- | interface-definitions/include/ospf-route-map.xml.i | 10 |
3 files changed, 26 insertions, 20 deletions
diff --git a/interface-definitions/include/ospf-metric-type.xml.i b/interface-definitions/include/ospf-metric-type.xml.i new file mode 100644 index 000000000..50f11960c --- /dev/null +++ b/interface-definitions/include/ospf-metric-type.xml.i @@ -0,0 +1,15 @@ +<!-- included start from ospf-metric-type.xml.i --> +<leafNode name="metric-type"> + <properties> + <help>OSPF metric type for default routes (default: 2)</help> + <valueHelp> + <format>u32:1-2</format> + <description>Metric type for default routes</description> + </valueHelp> + <constraint> + <validator name="numeric" argument="--range 1-2"/> + </constraint> + </properties> + <defaultValue>2</defaultValue> +</leafNode> +<!-- included end --> diff --git a/interface-definitions/include/ospf-metric.xml.i b/interface-definitions/include/ospf-metric.xml.i index 771fda02d..3ce12e877 100644 --- a/interface-definitions/include/ospf-metric.xml.i +++ b/interface-definitions/include/ospf-metric.xml.i @@ -11,23 +11,4 @@ </constraint> </properties> </leafNode> -<leafNode name="metric-type"> - <properties> - <help>OSPF metric type for default routes</help> - <valueHelp> - <format>u32:1-2</format> - <description>Metric type for default routes (default 2)</description> - </valueHelp> - <constraint> - <validator name="numeric" argument="--range 1-2"/> - </constraint> - </properties> -</leafNode> -<leafNode name="route-map"> - <properties> - <help>Route map reference</help> - <completionHelp> - <path>policy route-map</path> - </completionHelp> - </properties> -</leafNode> +<!-- included end --> diff --git a/interface-definitions/include/ospf-route-map.xml.i b/interface-definitions/include/ospf-route-map.xml.i new file mode 100644 index 000000000..8dc5b37da --- /dev/null +++ b/interface-definitions/include/ospf-route-map.xml.i @@ -0,0 +1,10 @@ +<!-- included start from ospf-route-map.xml.i --> +<leafNode name="route-map"> + <properties> + <help>Route map reference</help> + <completionHelp> + <path>policy route-map</path> + </completionHelp> + </properties> +</leafNode> +<!-- included end --> |