diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-07-14 21:40:52 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-07-17 07:28:50 +0200 |
commit | ed361a8254073505c1183bc884aa2bcb6ff0b76c (patch) | |
tree | ebdc477094470f42e5d6e0fa84c2e2e8c952a04f /interface-definitions/include | |
parent | b04c4e21a07126d40702123e1122cd200883ccda (diff) | |
download | vyos-1x-ed361a8254073505c1183bc884aa2bcb6ff0b76c.tar.gz vyos-1x-ed361a8254073505c1183bc884aa2bcb6ff0b76c.zip |
xml: provide common "dhcp-interface" include block
Diffstat (limited to 'interface-definitions/include')
-rw-r--r-- | interface-definitions/include/dhcp-interface.xml.i | 15 | ||||
-rw-r--r-- | interface-definitions/include/static/static-route.xml.i | 16 |
2 files changed, 16 insertions, 15 deletions
diff --git a/interface-definitions/include/dhcp-interface.xml.i b/interface-definitions/include/dhcp-interface.xml.i new file mode 100644 index 000000000..939b45f15 --- /dev/null +++ b/interface-definitions/include/dhcp-interface.xml.i @@ -0,0 +1,15 @@ + <leafNode name="dhcp-interface"> + <properties> + <help>DHCP interface supplying next-hop IP address</help> + <completionHelp> + <script>${vyos_completion_dir}/list_interfaces.py</script> + </completionHelp> + <valueHelp> + <format>txt</format> + <description>DHCP interface name</description> + </valueHelp> + <constraint> + <validator name="interface-name"/> + </constraint> + </properties> + </leafNode> diff --git a/interface-definitions/include/static/static-route.xml.i b/interface-definitions/include/static/static-route.xml.i index 254ea3163..21babc015 100644 --- a/interface-definitions/include/static/static-route.xml.i +++ b/interface-definitions/include/static/static-route.xml.i @@ -31,21 +31,7 @@ </leafNode> </children> </node> - <leafNode name="dhcp-interface"> - <properties> - <help>DHCP interface supplying next-hop IP address</help> - <completionHelp> - <script>${vyos_completion_dir}/list_interfaces.py</script> - </completionHelp> - <valueHelp> - <format>txt</format> - <description>DHCP interface name</description> - </valueHelp> - <constraint> - <validator name="interface-name"/> - </constraint> - </properties> - </leafNode> + #include <include/dhcp-interface.xml.i> <tagNode name="interface"> <properties> <help>Next-hop IPv4 router interface</help> |