daemon: updates to network base to set default behavior for abstract function

This commit is contained in:
Blake Harnden 2022-02-25 15:06:14 -08:00
parent e557b402b6
commit 074a2263ce
2 changed files with 12 additions and 1 deletions

View file

@ -969,7 +969,15 @@ class CoreNetworkBase(NodeBase):
"""
raise NotImplementedError
@abc.abstractmethod
def custom_iface(self, node: CoreNode, iface_data: InterfaceData) -> CoreInterface:
"""
Defines custom logic for creating an interface, if required.
:param node: node to create interface for
:param iface_data: data for creating interface
:return: created interface
"""
raise NotImplementedError
def get_linked_iface(self, net: "CoreNetworkBase") -> Optional[CoreInterface]: