diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-12-26 10:54:17 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-12-26 10:54:17 +0100 |
commit | 48cc27d9446abb4dfa5e78a42c591ac553e85d3e (patch) | |
tree | b16570a231bc3a8f2fd126c20ad96858eb98c4f7 /interface-definitions/include/ospf | |
parent | 604949b97cfff0fc91580d195739648f9bc12e50 (diff) | |
download | vyos-1x-48cc27d9446abb4dfa5e78a42c591ac553e85d3e.tar.gz vyos-1x-48cc27d9446abb4dfa5e78a42c591ac553e85d3e.zip |
ospfv3: T4108: add support for auto-cost parameter
Diffstat (limited to 'interface-definitions/include/ospf')
-rw-r--r-- | interface-definitions/include/ospf/auto-cost.xml.i | 22 | ||||
-rw-r--r-- | interface-definitions/include/ospf/protocol-common-config.xml.i | 21 |
2 files changed, 23 insertions, 20 deletions
diff --git a/interface-definitions/include/ospf/auto-cost.xml.i b/interface-definitions/include/ospf/auto-cost.xml.i new file mode 100644 index 000000000..3e6cc8232 --- /dev/null +++ b/interface-definitions/include/ospf/auto-cost.xml.i @@ -0,0 +1,22 @@ +<!-- include start from ospf/auto-cost.xml.i --> +<node name="auto-cost"> + <properties> + <help>Calculate interface cost according to bandwidth</help> + </properties> + <children> + <leafNode name="reference-bandwidth"> + <properties> + <help>Reference bandwidth method to assign cost (default: 100)</help> + <valueHelp> + <format>u32:1-4294967</format> + <description>Reference bandwidth cost in Mbits/sec</description> + </valueHelp> + <constraint> + <validator name="numeric" argument="--range 1-4294967"/> + </constraint> + </properties> + <defaultValue>100</defaultValue> + </leafNode> + </children> +</node> +<!-- include end --> diff --git a/interface-definitions/include/ospf/protocol-common-config.xml.i b/interface-definitions/include/ospf/protocol-common-config.xml.i index ac165a157..655f30ad3 100644 --- a/interface-definitions/include/ospf/protocol-common-config.xml.i +++ b/interface-definitions/include/ospf/protocol-common-config.xml.i @@ -275,26 +275,6 @@ </tagNode> </children> </tagNode> -<node name="auto-cost"> - <properties> - <help>Calculate OSPF interface cost according to bandwidth (default: 100)</help> - </properties> - <children> - <leafNode name="reference-bandwidth"> - <properties> - <help>Reference bandwidth method to assign OSPF cost</help> - <valueHelp> - <format>u32:1-4294967</format> - <description>Reference bandwidth cost in Mbits/sec</description> - </valueHelp> - <constraint> - <validator name="numeric" argument="--range 1-4294967"/> - </constraint> - </properties> - <defaultValue>100</defaultValue> - </leafNode> - </children> -</node> <node name="default-information"> <properties> <help>Default route advertisment settings</help> @@ -318,6 +298,7 @@ </node> </children> </node> +#include <include/ospf/auto-cost.xml.i> <leafNode name="default-metric"> <properties> <help>Metric of redistributed routes</help> |