diff --git a/ovsdbapp/schema/ovn_northbound/commands.py b/ovsdbapp/schema/ovn_northbound/commands.py index bb06d55d..479d3ff1 100644 --- a/ovsdbapp/schema/ovn_northbound/commands.py +++ b/ovsdbapp/schema/ovn_northbound/commands.py @@ -443,8 +443,8 @@ class LspSetAddressesCommand(cmd.BaseCommand): for addr in addresses: if not self.addr_re.match(addr): raise TypeError( - "address must be router/unknown/dynamic/" - "ethaddr[ ipaddr...]") + "address (%s) must be router/unknown/dynamic/" + "ethaddr[ ipaddr...]" % (addr,)) super(LspSetAddressesCommand, self).__init__(api) self.port = port self.addresses = addresses diff --git a/ovsdbapp/tests/functional/schema/ovn_northbound/test_impl_idl.py b/ovsdbapp/tests/functional/schema/ovn_northbound/test_impl_idl.py index 7cc18437..d2b19014 100644 --- a/ovsdbapp/tests/functional/schema/ovn_northbound/test_impl_idl.py +++ b/ovsdbapp/tests/functional/schema/ovn_northbound/test_impl_idl.py @@ -489,7 +489,7 @@ class TestLspOps(OvnNorthboundTest): def test_lsp_set_addresses_invalid(self): self.assertRaises( TypeError, - self.api.lsp_set_addresses, 'fake', 'invalidaddress') + self.api.lsp_set_addresses, 'fake', ['invalidaddress']) def test_lsp_get_addresses(self): addresses = [