Reproduce errors:
Start ping from a host behind wan load-balancing.
Then enter command "sh nat source translations".
Afterwards the error message is displayed below:
(The error appears only if sessions are active)
admin@lab01:~$ sh nat source translations Traceback (most recent call last): File "/usr/libexec/vyos/op_mode/show_nat_translations.py", line 200, in <module> Pre-NAT Post-NAT Prot Timeout main() File "/usr/libexec/vyos/op_mode/show_nat_translations.py", line 196, in main process(run(command(arg.type, arg.proto, arg.ipaddr)), arg.stats, arg.proto, arg.pipe, arg.verbose, arg.type) File "/usr/libexec/vyos/op_mode/show_nat_translations.py", line 106, in process rule_type = rule.get('type', '') AttributeError: 'str' object has no attribute 'get'
Config:
set interfaces bonding bond0 description 'WAN' set interfaces bonding bond0 hash-policy 'layer2' set interfaces bonding bond0 member interface 'eth0' set interfaces bonding bond0 member interface 'eth1' set interfaces bonding bond0 mode '802.3ad' set interfaces bonding bond0 mtu '9000' set interfaces bonding bond0 vif 1010 address 'xxx.xxx.107.21/29' set interfaces bonding bond0 vif 1010 description 'ISP1' set interfaces bonding bond0 vif 1010 mtu '1500' set interfaces bonding bond0 vif 1011 address 'xxx.xxx.156.243/29' set interfaces bonding bond0 vif 1011 description 'ISP2' set interfaces bonding bond0 vif 1011 mtu '1500' #.... set interfaces bonding bond1 description 'LAN' set interfaces bonding bond1 hash-policy 'layer2' set interfaces bonding bond1 member interface 'eth4' set interfaces bonding bond1 member interface 'eth5' set interfaces bonding bond1 mode '802.3ad' set interfaces bonding bond1 mtu '9000' set interfaces bonding bond1 vif 44 address 'xxx.xxx.44.2/24' set interfaces bonding bond1 vif 44 description 'Multimedia' set interfaces bonding bond1 vif 66 address 'xxx.xxx.66.2/24' set interfaces bonding bond1 vif 66 description 'Data' #.... set load-balancing wan flush-connections set load-balancing wan interface-health bond0.1010 failure-count '1' set load-balancing wan interface-health bond0.1010 nexthop 'xxx.xxx.107.17' set load-balancing wan interface-health bond0.1010 success-count '1' set load-balancing wan interface-health bond0.1010 test 1 resp-time '5' set load-balancing wan interface-health bond0.1010 test 1 target 'xxx.xxx.8.8' set load-balancing wan interface-health bond0.1010 test 1 ttl-limit '1' set load-balancing wan interface-health bond0.1011 failure-count '1' set load-balancing wan interface-health bond0.1011 nexthop 'xxx.xxx.156.241' set load-balancing wan interface-health bond0.1011 success-count '1' set load-balancing wan interface-health bond0.1011 test 1 resp-time '5' set load-balancing wan interface-health bond0.1011 test 1 target 'xxx.xxx.4.4' set load-balancing wan interface-health bond0.1011 test 1 ttl-limit '1' set load-balancing wan rule 1 failover set load-balancing wan rule 1 inbound-interface 'bond1.66' set load-balancing wan rule 1 interface bond0.1010 weight '255' set load-balancing wan rule 1 interface bond0.1011 weight '250' set load-balancing wan rule 1 protocol 'all' set load-balancing wan sticky-connections inbound