From 37b33e3cedc2734c1339bbf4851703e7b5ff360c Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Wed, 30 Dec 2020 16:30:05 +0100 Subject: xml: completion-help: add source-address completion helper Commit bbc2a157 ("xml: completion-help: add helper for all local assigned IP addresses") added a completionHelper script listing all local assigned IPv4/IPv6 addresses. This commit extends the system to also list the available addresses for the source-address CLI nodes. --- interface-definitions/dns-forwarding.xml.in | 7 ++++--- interface-definitions/include/radius-server.xml.i | 13 +------------ .../include/source-address-ipv4-ipv6.xml.i | 9 ++++++--- interface-definitions/include/source-address-ipv4.xml.i | 17 +++++++++++++++++ interface-definitions/interfaces-vxlan.xml.in | 13 +------------ 5 files changed, 29 insertions(+), 30 deletions(-) create mode 100644 interface-definitions/include/source-address-ipv4.xml.i diff --git a/interface-definitions/dns-forwarding.xml.in b/interface-definitions/dns-forwarding.xml.in index ad6eb2463..66b4db403 100644 --- a/interface-definitions/dns-forwarding.xml.in +++ b/interface-definitions/dns-forwarding.xml.in @@ -162,9 +162,10 @@ - Local addresses from which to send DNS queries. - If unspecified, the querier will use any available address on - the outbound interface. + Local addresses from which to send DNS queries + + + ipv4 IPv4 address from which to send traffic diff --git a/interface-definitions/include/radius-server.xml.i b/interface-definitions/include/radius-server.xml.i index fc8fe5248..c1dadd2a2 100644 --- a/interface-definitions/include/radius-server.xml.i +++ b/interface-definitions/include/radius-server.xml.i @@ -4,18 +4,7 @@ RADIUS based user authentication - - - RADIUS client source address - - ipv4 - IPv4 source-address of RADIUS queries - - - - - - + #include RADIUS server configuration diff --git a/interface-definitions/include/source-address-ipv4-ipv6.xml.i b/interface-definitions/include/source-address-ipv4-ipv6.xml.i index 6716e0ae4..004e04f7b 100644 --- a/interface-definitions/include/source-address-ipv4-ipv6.xml.i +++ b/interface-definitions/include/source-address-ipv4-ipv6.xml.i @@ -1,14 +1,17 @@ - IPv4/IPv6 source address + Source IP address used to initiate connection + + + ipv4 - IPv4 source-address + IPv4 source address ipv6 - IPv6 source-address + IPv6 source address diff --git a/interface-definitions/include/source-address-ipv4.xml.i b/interface-definitions/include/source-address-ipv4.xml.i new file mode 100644 index 000000000..2dff2c65e --- /dev/null +++ b/interface-definitions/include/source-address-ipv4.xml.i @@ -0,0 +1,17 @@ + + + + IPv4 source address used to initiiate connection + + + + + ipv4 + IPv4 source address + + + + + + + diff --git a/interface-definitions/interfaces-vxlan.xml.in b/interface-definitions/interfaces-vxlan.xml.in index 4426f1157..8c76ab60b 100644 --- a/interface-definitions/interfaces-vxlan.xml.in +++ b/interface-definitions/interfaces-vxlan.xml.in @@ -37,18 +37,7 @@ #include #include - - - VXLAN source address - - ipv4 - IPv4 source-address of VXLAN tunnel - - - - - - + #include #include #include #include -- cgit v1.2.3