diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-07-15 20:58:28 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-07-15 20:58:28 +0200 |
commit | c24cecc325defc87973b28d288b23eca8368927d (patch) | |
tree | 051a18b72a40bc9405235c8487157493e3b83fbb /interface-definitions/include | |
parent | 2dd1392cfe28518658604c88e606c7aec03936a7 (diff) | |
parent | 63052b8906871dc314945922e7f27ef24e114a45 (diff) | |
download | vyos-1x-c24cecc325defc87973b28d288b23eca8368927d.tar.gz vyos-1x-c24cecc325defc87973b28d288b23eca8368927d.zip |
Merge branch 'curlrc' of github.com:c-po/vyos-1x into current
* 'curlrc' of github.com:c-po/vyos-1x:
http-client: T2651: support specifying source-interface/address for curl
xml: T2651: provide general source-interface include file
Diffstat (limited to 'interface-definitions/include')
-rw-r--r-- | interface-definitions/include/source-address-ipv4-ipv6.xml.i | 17 | ||||
-rw-r--r-- | interface-definitions/include/source-interface.xml.i | 12 |
2 files changed, 29 insertions, 0 deletions
diff --git a/interface-definitions/include/source-address-ipv4-ipv6.xml.i b/interface-definitions/include/source-address-ipv4-ipv6.xml.i new file mode 100644 index 000000000..6d2d77c95 --- /dev/null +++ b/interface-definitions/include/source-address-ipv4-ipv6.xml.i @@ -0,0 +1,17 @@ +<leafNode name="source-address"> + <properties> + <help>IPv4/IPv6 source address</help> + <valueHelp> + <format>ipv4</format> + <description>IPv4 source-address</description> + </valueHelp> + <valueHelp> + <format>ipv6</format> + <description>IPv6 source-address</description> + </valueHelp> + <constraint> + <validator name="ipv4-address"/> + <validator name="ipv6-address"/> + </constraint> + </properties> +</leafNode> diff --git a/interface-definitions/include/source-interface.xml.i b/interface-definitions/include/source-interface.xml.i new file mode 100644 index 000000000..ae579c2a6 --- /dev/null +++ b/interface-definitions/include/source-interface.xml.i @@ -0,0 +1,12 @@ +<leafNode name="source-interface"> + <properties> + <help>Physical interface used for connection</help> + <valueHelp> + <format>interface</format> + <description>Physical interface used for connection</description> + </valueHelp> + <completionHelp> + <script>${vyos_completion_dir}/list_interfaces.py</script> + </completionHelp> + </properties> +</leafNode> |