Avoid problem similar to described in bug #
1367881
Change-Id: I76059469c20be9161743ba730e46da1789ded4a8
Closes-Bug: #
1407887
Related-Bug: #
1367881
if agent_ip == self.agent.br_mgr.local_ip:
continue
- after = state.get('after')
+ after = state.get('after', [])
for mac, ip in after:
self.agent.br_mgr.add_fdb_ip_entry(mac, ip, interface)
- before = state.get('before')
+ before = state.get('before', [])
for mac, ip in before:
self.agent.br_mgr.remove_fdb_ip_entry(mac, ip, interface)
check_exit_code=False)
]
execute_fn.assert_has_calls(expected)
+
+ def test_fdb_update_chg_ip_empty_lists(self):
+ fdb_entries = {'chg_ip': {'net_id': {'agent_ip': {}}}}
+ self.lb_rpc.fdb_update(None, fdb_entries)