static route not being applied when a four 8-bit octets ipv4 subnet mask is set
Adding a static subnet route via LuCI or ssh file edit the route is not applied when a subnet mask is set via four 8-bit octets. The route however is applied if the netmask is omitted and 255.255.255.255 is assumed and thus makes the target subnet a host address instead of a subnet.
According to the upstream documentation the syntax for subnets in ipv4 and ipv6 differs and yet seems that the ipv4 subnet mask for the target network receives the same parsing treatment as ipv6, i.e not as four 8-bit octets but its equivalent integer.
Not working (though it would be expected)
config route option interface 'foobar' option target 'ip' option gateway 'ip' option netmask ‘255.255.255.0’
Working instead (which is rather unexpected)
config route option interface 'foobar' option target 'ip/24' option gateway 'ip'
Not sure whether it is a bug or by design and latter not having made into the documentation.
TO forum cross reference https://forum.turris.cz/t/static-route-not-applied/8525