diff options
author | Indrajit Raychaudhuri <irc@indrajit.com> | 2023-09-22 12:29:22 -0500 |
---|---|---|
committer | Indrajit Raychaudhuri <irc@indrajit.com> | 2023-11-30 21:42:23 -0600 |
commit | a886b2efdd4dde56b407c1e860485a79b5bad210 (patch) | |
tree | b8b4e183b0537f5ffc1e2411b1fbadb0be39614b /src/validators | |
parent | 7a1711419eeaaf6bee837e824eec977b16767427 (diff) | |
download | vyos-1x-a886b2efdd4dde56b407c1e860485a79b5bad210.tar.gz vyos-1x-a886b2efdd4dde56b407c1e860485a79b5bad210.zip |
ddclient: T5612: Adjust validator and completion for ddclient
Adjust the validator and completion for ddclient to remove unsupported
or superfluous protocols.
Specifically,
- remove 'nsupdate' protocol from the list because there is a separate
config path for that protocol (rfc2136)
- remove 'cloudns' protocol from the list because it has non standard
configuration and is not supported by our configurator at this time
Diffstat (limited to 'src/validators')
-rwxr-xr-x | src/validators/ddclient-protocol | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/validators/ddclient-protocol b/src/validators/ddclient-protocol index 6f927927b..bc6826120 100755 --- a/src/validators/ddclient-protocol +++ b/src/validators/ddclient-protocol @@ -14,7 +14,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -ddclient -list-protocols | grep -qw $1 +ddclient -list-protocols | grep -vE 'nsupdate|cloudns' | grep -qw $1 if [ $? -gt 0 ]; then echo "Error: $1 is not a valid protocol, please choose from the supported list of protocols" |