updated all classes to be created without using (object), in python3 all classes are new style classes
This commit is contained in:
parent
39c40d2a8c
commit
6a0a9e7698
24 changed files with 48 additions and 48 deletions
|
@ -29,7 +29,7 @@ signal.signal(signal.SIGUSR1, signal_handler)
|
|||
signal.signal(signal.SIGUSR2, signal_handler)
|
||||
|
||||
|
||||
class CoreEmu(object):
|
||||
class CoreEmu:
|
||||
"""
|
||||
Provides logic for creating and configuring CORE sessions and the nodes within them.
|
||||
"""
|
||||
|
|
|
@ -21,7 +21,7 @@ LOCK = threading.Lock()
|
|||
CMD_HIDE = True
|
||||
|
||||
|
||||
class DistributedServer(object):
|
||||
class DistributedServer:
|
||||
"""
|
||||
Provides distributed server interactions.
|
||||
"""
|
||||
|
@ -101,7 +101,7 @@ class DistributedServer(object):
|
|||
os.unlink(temp.name)
|
||||
|
||||
|
||||
class DistributedController(object):
|
||||
class DistributedController:
|
||||
"""
|
||||
Provides logic for dealing with remote tunnels and distributed servers.
|
||||
"""
|
||||
|
|
|
@ -4,7 +4,7 @@ from core.nodes.ipaddress import Ipv4Prefix, Ipv6Prefix, MacAddress
|
|||
from core.nodes.physical import PhysicalNode
|
||||
|
||||
|
||||
class IdGen(object):
|
||||
class IdGen:
|
||||
def __init__(self, _id=0):
|
||||
self.id = _id
|
||||
|
||||
|
@ -61,7 +61,7 @@ def link_config(network, interface, link_options, devname=None, interface_two=No
|
|||
network.linkconfig(**config)
|
||||
|
||||
|
||||
class NodeOptions(object):
|
||||
class NodeOptions:
|
||||
"""
|
||||
Options for creating and updating nodes within core.
|
||||
"""
|
||||
|
@ -115,7 +115,7 @@ class NodeOptions(object):
|
|||
self.alt = alt
|
||||
|
||||
|
||||
class LinkOptions(object):
|
||||
class LinkOptions:
|
||||
"""
|
||||
Options for creating and updating links within core.
|
||||
"""
|
||||
|
@ -145,7 +145,7 @@ class LinkOptions(object):
|
|||
self.opaque = None
|
||||
|
||||
|
||||
class IpPrefixes(object):
|
||||
class IpPrefixes:
|
||||
"""
|
||||
Convenience class to help generate IP4 and IP6 addresses for nodes within CORE.
|
||||
"""
|
||||
|
@ -236,7 +236,7 @@ class IpPrefixes(object):
|
|||
)
|
||||
|
||||
|
||||
class InterfaceData(object):
|
||||
class InterfaceData:
|
||||
"""
|
||||
Convenience class for storing interface data.
|
||||
"""
|
||||
|
|
|
@ -71,7 +71,7 @@ NODES_TYPE = {NODES[x]: x for x in NODES}
|
|||
CTRL_NET_ID = 9001
|
||||
|
||||
|
||||
class Session(object):
|
||||
class Session:
|
||||
"""
|
||||
CORE session manager.
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue