Error when viewing source and destination rules in nat66.
Error source rule:
vyos@vyos:~$ show nat66 source rules Traceback (most recent call last): Rule Source Translation Outbound Interface ---- ------ ----------- ------------------ File "/usr/libexec/vyos/op_mode/show_nat66_rules.py", line 96, in <module> print(format_nat66_rule.format(rule, srcdest, tran_addr, interface)) NameError: name 'tran_addr' is not defined
Error destination rule:
vyos@vyos:~$ show nat66 destination rules Rule Destination Translation Inbound Interface ---- ----------- ----------- ----------------- Traceback (most recent call last): File "/usr/libexec/vyos/op_mode/show_nat66_rules.py", line 74, in <module> srcdest = dict_search('match.right.prefix.addr', data['expr'][2]) File "/usr/lib/python3/dist-packages/vyos/util.py", line 765, in dict_search c = c.get(p, {}) AttributeError: 'str' object has no attribute 'get'
VyOS configuration:
set interfaces ethernet eth0 address '2001:1111:1111:1111::10/64' set interfaces ethernet eth1 address 'fd00:1111:1111:1111::1/64' set nat66 destination rule 100 destination address '2001:1111:1111:1111::10' set nat66 destination rule 100 inbound-interface 'eth0' set nat66 destination rule 100 translation address 'fd00:1111:1111:1111::10' set nat66 source rule 100 destination prefix '!fd00:2222:2222:2222::/64' set nat66 source rule 100 outbound-interface 'eth0' set nat66 source rule 100 source prefix 'fd00:1111:1111:1111::/64' set nat66 source rule 100 translation address '2001:1111:1111:1111::10'