diff options
author | jack9603301 <jack9603301@163.com> | 2020-12-13 20:30:23 +0800 |
---|---|---|
committer | jack9603301 <jack9603301@163.com> | 2021-02-02 13:58:00 +0800 |
commit | c7d0865455c9bbf078765b7a53811286cf3dfb8b (patch) | |
tree | 7c3cbc94fe67fe1b97f58850da438625ef4fb3ae /interface-definitions/include/tunnel-local-remote-ip.xml.i | |
parent | a8028063b3ed7a897aa265755dde37abaeb7520f (diff) | |
download | vyos-1x-c7d0865455c9bbf078765b7a53811286cf3dfb8b.tar.gz vyos-1x-c7d0865455c9bbf078765b7a53811286cf3dfb8b.zip |
tunnel: T3030: Modify the command line to streamline configuration (support package type automatic detection)
Diffstat (limited to 'interface-definitions/include/tunnel-local-remote-ip.xml.i')
-rw-r--r-- | interface-definitions/include/tunnel-local-remote-ip.xml.i | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/interface-definitions/include/tunnel-local-remote-ip.xml.i b/interface-definitions/include/tunnel-local-remote-ip.xml.i new file mode 100644 index 000000000..85c20f482 --- /dev/null +++ b/interface-definitions/include/tunnel-local-remote-ip.xml.i @@ -0,0 +1,37 @@ +<!-- included start from tunnel-local-remote-ip.xml.i --> +<leafNode name="local-ip"> + <properties> + <help>Local IP address for this tunnel</help> + <valueHelp> + <format>ipv4</format> + <description>Local IPv4 address for this tunnel</description> + </valueHelp> + <valueHelp> + <format>ipv6</format> + <description>Local IPv6 address for this tunnel</description> + </valueHelp> + <completionHelp> + <script>${vyos_completion_dir}/list_local_ips.sh --both</script> + </completionHelp> + <constraint> + <validator name="ip-address"/> + </constraint> + </properties> +</leafNode> +<leafNode name="remote-ip"> + <properties> + <help>Remote IP address for this tunnel</help> + <valueHelp> + <format>ipv4</format> + <description>Remote IPv4 address for this tunnel</description> + </valueHelp> + <valueHelp> + <format>ipv6</format> + <description>Remote IPv6 address for this tunnel</description> + </valueHelp> + <constraint> + <!-- does it need fixing/changing to be more restrictive ? --> + <validator name="ip-address"/> + </constraint> + </properties> +</leafNode> |