daemon: Include MAC addresses in CORE API link messages.
This commit is contained in:
parent
db03927892
commit
db15bee60c
3 changed files with 16 additions and 0 deletions
|
@ -371,6 +371,10 @@ class PyCoreNet(PyCoreObj):
|
|||
1)
|
||||
tlvdata += coreapi.CoreLinkTlv.pack(coreapi.CORE_TLV_LINK_IF2NUM,
|
||||
otherobj.getifindex(netif))
|
||||
if netif.hwaddr:
|
||||
tlvdata += \
|
||||
coreapi.CoreLinkTlv.pack(coreapi.CORE_TLV_LINK_IF2MAC,
|
||||
netif.hwaddr)
|
||||
for addr in netif.addrlist:
|
||||
(ip, sep, mask) = addr.partition('/')
|
||||
mask = int(mask)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue