parent
e38ba3a606
commit
75c7c84137
@ -39,7 +39,8 @@ def to_global(prefix, mac, project_id):
|
||||
except TypeError:
|
||||
raise TypeError(_('Bad prefix for to_global_ipv6: %s') % prefix)
|
||||
except NameError:
|
||||
raise TypeError(_('Bad project_id for to_global_ipv6: %s') % project_id)
|
||||
raise TypeError(_('Bad project_id for to_global_ipv6: %s') %
|
||||
project_id)
|
||||
|
||||
|
||||
def to_mac(ipv6_address):
|
||||
|
@ -48,7 +48,7 @@ class IPv6RFC2462TestCase(test.TestCase):
|
||||
def test_to_global_with_bad_prefix(self):
|
||||
bad_prefix = '82'
|
||||
self.assertRaises(TypeError, ipv6.to_global,
|
||||
bad_prefix,
|
||||
bad_prefix,
|
||||
'2001:db8::216:3eff:fe33:4455',
|
||||
'test')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user