Issue description
Whenever a NAT rule with negation in the interface name is used, an invalid warning appears.
Expected behavior
No warnings appear on screen when commit is executed.
Example of such configuration
set nat destination rule 10 description 'DNS' set nat destination rule 10 destination address 10.0.0.1 set nat destination rule 10 destination port 53 set nat destination rule 10 inbound-interface name '!eth0' # <--- here, eth0 is negated set nat destination rule 10 protocol 'tcp_udp' set nat destination rule 10 translation address 172.16.0.1
Console output after commit
WARNING: NAT interface "!eth0" for destination NAT rule "10" does not exist!
Suggested fix
- Copy over the mechanism for checking group names (done in GitHub PR: https://github.com/vyos/vyos-1x/pull/3482)