fixed issue with xorp service depending on old MacAddress class
This commit is contained in:
parent
f4671ab2b8
commit
a64047e221
1 changed files with 2 additions and 2 deletions
|
@ -69,7 +69,7 @@ class XorpRtrmgr(CoreService):
|
||||||
"""
|
"""
|
||||||
helper for adding link-local address entries (required by OSPFv3)
|
helper for adding link-local address entries (required by OSPFv3)
|
||||||
"""
|
"""
|
||||||
cfg = "\t address %s {\n" % iface.mac.tolinklocal()
|
cfg = "\t address %s {\n" % netaddr.EUI(iface.mac).eui64()
|
||||||
cfg += "\t\tprefix-length: 64\n"
|
cfg += "\t\tprefix-length: 64\n"
|
||||||
cfg += "\t }\n"
|
cfg += "\t }\n"
|
||||||
return cfg
|
return cfg
|
||||||
|
@ -305,7 +305,7 @@ class XorpRipng(XorpService):
|
||||||
for iface in node.get_ifaces(control=False):
|
for iface in node.get_ifaces(control=False):
|
||||||
cfg += "\tinterface %s {\n" % iface.name
|
cfg += "\tinterface %s {\n" % iface.name
|
||||||
cfg += "\t vif %s {\n" % iface.name
|
cfg += "\t vif %s {\n" % iface.name
|
||||||
cfg += "\t\taddress %s {\n" % iface.mac.tolinklocal()
|
cfg += "\t\taddress %s {\n" % netaddr.EUI(iface.mac).eui64()
|
||||||
cfg += "\t\t disable: false\n"
|
cfg += "\t\t disable: false\n"
|
||||||
cfg += "\t\t}\n"
|
cfg += "\t\t}\n"
|
||||||
cfg += "\t }\n"
|
cfg += "\t }\n"
|
||||||
|
|
Loading…
Reference in a new issue