diff --git a/tests/openwrt/test_default.py b/tests/openwrt/test_default.py index 21c9a6155..d5491bb9d 100644 --- a/tests/openwrt/test_default.py +++ b/tests/openwrt/test_default.py @@ -48,31 +48,34 @@ def test_render_default(self): } ) expected = self._tabs( - """package firewall + """\ +package firewall + +config defaults 'defaults' config rule 'rule_Allow_MLD' - option family 'ipv6' - list icmp_type '130/0' - list icmp_type '131/0' - list icmp_type '132/0' - list icmp_type '143/0' option name 'Allow-MLD' - option proto 'icmp' option src 'wan' + option proto 'icmp' option src_ip 'fe80::/10' + option family 'ipv6' option target 'ACCEPT' - -config rule 'rule_Rule2' - option family 'ipv4' list icmp_type '130/0' list icmp_type '131/0' list icmp_type '132/0' list icmp_type '143/0' + +config rule 'rule_Rule2' option name 'Rule2' - option proto 'icmp' option src 'wan' + option proto 'icmp' option src_ip '192.168.1.1/24' + option family 'ipv4' option target 'ACCEPT' + list icmp_type '130/0' + list icmp_type '131/0' + list icmp_type '132/0' + list icmp_type '143/0' package luci