fw4.uc: add _name as deprecated option
authorStijn Tintel <stijn@linux-ipv6.be>
Thu, 25 Nov 2021 04:15:15 +0000 (06:15 +0200)
committerStijn Tintel <stijn@linux-ipv6.be>
Thu, 6 Jan 2022 12:52:02 +0000 (14:52 +0200)
Add _name as deprecated option for rules and redirects, as this might
have been added by LuCI at some point.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
Reviewed-by: Jo-Philipp Wich <jo@mein.io>
root/usr/share/ucode/fw4.uc

index df5ab876f4ed12b352ec444ceb06631467e7bdcf..7ada93e6c82cac3cbef093552e1b24ea68d250a6 100644 (file)
@@ -1921,6 +1921,7 @@ return {
                        enabled: [ "bool", "1" ],
 
                        name: [ "string", this.section_id(data[".name"]) ],
+                       _name: [ "string", null, DEPRECATED ],
                        family: [ "family" ],
 
                        src: [ "zone_ref" ],
@@ -2201,6 +2202,7 @@ return {
                        enabled: [ "bool", "1" ],
 
                        name: [ "string", this.section_id(data[".name"]) ],
+                       _name: [ "string", null, DEPRECATED ],
                        family: [ "family", "4" ],
 
                        src: [ "zone_ref" ],