diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-08-30 17:36:19 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2022-08-30 17:38:18 +0200 |
commit | 69f79beee2070906b68f2b910296c362e7216278 (patch) | |
tree | 5e01f71940415a75a38a05b325400ceffd178286 /interface-definitions/include/firewall | |
parent | a7fba75a06ef6a9551a1246cc3168a1999347e13 (diff) | |
download | vyos-1x-69f79beee2070906b68f2b910296c362e7216278.tar.gz vyos-1x-69f79beee2070906b68f2b910296c362e7216278.zip |
firewall: T4655: implement XML defaultValue for name and ipv6-name
This extends the implementation of commit 0cc7e0a49094 ("firewall: T4655: Fix
default action 'drop' for the firewall") in a way that we can now also use the
XML <defaultValue> node under "firewall name" and "firewall ipv6-name". This
is a much cleaner approach which also adds the default value automatically to
the CLIs completion helper ("?").
Diffstat (limited to 'interface-definitions/include/firewall')
-rw-r--r-- | interface-definitions/include/firewall/default-action.xml.i | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/interface-definitions/include/firewall/default-action.xml.i b/interface-definitions/include/firewall/default-action.xml.i index b11dfd2e8..92a2fcaaf 100644 --- a/interface-definitions/include/firewall/default-action.xml.i +++ b/interface-definitions/include/firewall/default-action.xml.i @@ -21,5 +21,6 @@ <regex>(drop|reject|accept)</regex> </constraint> </properties> + <defaultValue>drop</defaultValue> </leafNode> <!-- include end --> |