updates to layout core module packages in a more logical way, including renaming methods from objects to nodes and nodes.objid to nodes.id
This commit is contained in:
parent
9517740704
commit
66e603906a
100 changed files with 10283 additions and 3489 deletions
|
@ -3,10 +3,10 @@ import socket
|
|||
|
||||
from lxml import etree
|
||||
|
||||
from core import constants
|
||||
from core.coreobj import PyCoreNode
|
||||
from core.enumerations import NodeTypes
|
||||
from core.misc import utils, nodeutils, ipaddress
|
||||
from core import constants, utils
|
||||
from core.nodes.base import CoreNodeBase
|
||||
from core.emulator.enumerations import NodeTypes
|
||||
from core.nodes import nodeutils, ipaddress
|
||||
|
||||
|
||||
def add_type(parent_element, name):
|
||||
|
@ -100,8 +100,8 @@ class CoreXmlDeployment(object):
|
|||
# servers = self.session.broker.getservernames()
|
||||
# servers.remove("localhost")
|
||||
|
||||
for node in self.session.objects.itervalues():
|
||||
if isinstance(node, PyCoreNode):
|
||||
for node in self.session.nodes.itervalues():
|
||||
if isinstance(node, CoreNodeBase):
|
||||
self.add_virtual_host(physical_host, node)
|
||||
|
||||
def add_physical_host(self, name):
|
||||
|
@ -119,7 +119,7 @@ class CoreXmlDeployment(object):
|
|||
return host_element
|
||||
|
||||
def add_virtual_host(self, physical_host, node):
|
||||
if not isinstance(node, PyCoreNode):
|
||||
if not isinstance(node, CoreNodeBase):
|
||||
raise TypeError("invalid node type: %s" % node)
|
||||
|
||||
# create virtual host element
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue