removed IdGen class, added simple function to find next valid node id

This commit is contained in:
Blake Harnden 2020-06-09 00:56:34 -07:00
parent 199c4618f5
commit 6ddf1ac9a4
2 changed files with 14 additions and 16 deletions

View file

@ -10,15 +10,6 @@ from core.nodes.interface import CoreInterface
from core.nodes.physical import PhysicalNode
class IdGen:
def __init__(self, _id: int = 0) -> None:
self.id = _id
def next(self) -> int:
self.id += 1
return self.id
def link_config(
node: Union[CoreNetworkBase, PhysicalNode],
interface: CoreInterface,