changes to replace MacAddress usage and remove ipaddress module altogether
This commit is contained in:
parent
4db7f845a5
commit
de493c810a
11 changed files with 43 additions and 83 deletions
|
@ -9,8 +9,8 @@ from contextlib import contextmanager
|
|||
import grpc
|
||||
import netaddr
|
||||
|
||||
from core import utils
|
||||
from core.api.grpc import core_pb2, core_pb2_grpc
|
||||
from core.nodes.ipaddress import MacAddress
|
||||
|
||||
|
||||
class InterfaceHelper:
|
||||
|
@ -88,7 +88,7 @@ class InterfaceHelper:
|
|||
|
||||
# random mac
|
||||
if not mac:
|
||||
mac = MacAddress.random()
|
||||
mac = utils.random_mac()
|
||||
|
||||
return core_pb2.Interface(
|
||||
id=interface_id,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue