forgot these don't have .str attrs
This commit is contained in:
parent
32c78201e8
commit
b5b47e92fd
@ -173,7 +173,7 @@ class TunnelBroker(object):
|
|||||||
try:
|
try:
|
||||||
ipr.addr('del',
|
ipr.addr('del',
|
||||||
index = assignment.iface_idx,
|
index = assignment.iface_idx,
|
||||||
address = str(b),
|
address = str(b.ip),
|
||||||
mask = b.prefixlen,
|
mask = b.prefixlen,
|
||||||
family = socket.AF_INET6)
|
family = socket.AF_INET6)
|
||||||
logger.debug('Removed {0} with prefix {1} from {2}.'.format(str(b), b.prefixlen, assignment.iface))
|
logger.debug('Removed {0} with prefix {1} from {2}.'.format(str(b), b.prefixlen, assignment.iface))
|
||||||
@ -182,13 +182,13 @@ class TunnelBroker(object):
|
|||||||
try:
|
try:
|
||||||
ipr.addr('add',
|
ipr.addr('add',
|
||||||
index = assignment.iface_idx,
|
index = assignment.iface_idx,
|
||||||
address = str(b),
|
address = str(b.ip),
|
||||||
mask = b.prefixlen,
|
mask = b.prefixlen,
|
||||||
family = socket.AF_INET6)
|
family = socket.AF_INET6)
|
||||||
logger.debug('Added {0} with prefix {1} to {2}.'.format(str(b), b.prefixlen, assignment.iface))
|
logger.debug('Added {0} with prefix {1} to {2}.'.format(str(b.ip), b.prefixlen, assignment.iface))
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.error(('Could not add address block {0} on {1}: '
|
logger.error(('Could not add address block {0} with prefix {1} on {2}: '
|
||||||
'{2}').format(str(b), assignment.iface, e))
|
'{3}').format(str(b.ip), b.prefixlen, assignment.iface, e))
|
||||||
ipr.close()
|
ipr.close()
|
||||||
raise e
|
raise e
|
||||||
ipr.close()
|
ipr.close()
|
||||||
|
Loading…
Reference in New Issue
Block a user