diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-07-15 20:56:53 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-07-15 20:56:53 +0200 |
commit | 63052b8906871dc314945922e7f27ef24e114a45 (patch) | |
tree | c9d8dcb7182f1fca288fc86ff3735ad98f4c1d9f /interface-definitions/include/source-address-ipv4-ipv6.xml.i | |
parent | bee479c9baa92bab3c367d1660061cb8542a67bc (diff) | |
download | vyos-1x-63052b8906871dc314945922e7f27ef24e114a45.tar.gz vyos-1x-63052b8906871dc314945922e7f27ef24e114a45.zip |
http-client: T2651: support specifying source-interface/address for curl
Please note that either interface or address can be configured.
system {
options {
http-client {
source-interface eth0
source-address 1.1.1.1
}
}
}
Diffstat (limited to 'interface-definitions/include/source-address-ipv4-ipv6.xml.i')
-rw-r--r-- | interface-definitions/include/source-address-ipv4-ipv6.xml.i | 17 |
1 files changed, 17 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> |