From 1e74c0df2179c60036e440e15ed9036163039b2a Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sat, 3 Jul 2021 15:39:17 +0200 Subject: ipsec: T2816: remove default values from Jinja2 template and place them in XML VyOS has a known to work mechanism in supplying CLI default values into the Python configuration scripts. This commit removes hardcoded default values from the Jinja2 template and places them into the appropriate XML definitions. The big advantage is that the default value itself and the corresponding help string are located in the exact same file. --- interface-definitions/vpn_ipsec.xml.in | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'interface-definitions/vpn_ipsec.xml.in') diff --git a/interface-definitions/vpn_ipsec.xml.in b/interface-definitions/vpn_ipsec.xml.in index 6aff7bef5..a2e9a7a5a 100644 --- a/interface-definitions/vpn_ipsec.xml.in +++ b/interface-definitions/vpn_ipsec.xml.in @@ -64,6 +64,7 @@ + 3600 @@ -83,6 +84,7 @@ ^(tunnel|transport)$ + tunnel @@ -190,6 +192,7 @@ ^(enable|dh-group1|dh-group2|dh-group5|dh-group14|dh-group15|dh-group16|dh-group17|dh-group18|dh-group19|dh-group20|dh-group21|dh-group22|dh-group23|dh-group24|dh-group25|dh-group26|dh-group27|dh-group28|dh-group29|dh-group30|dh-group31|dh-group32|disable)$ + enable @@ -341,6 +344,7 @@ + 28800 -- cgit v1.2.3