daemon/core/misc/xmlwriter1.py
def addNetworks(self):
        ''' Add networks in the session to the scenPlan.
        '''
        for net in self.coreSession.objs():
            if not isinstance(net, nodes.PyCoreNet):
                continue

            if isinstance(net, nodes.CtrlNet):
                continue

            # Do not add switches and hubs that belong to another network
            if isinstance(net, (nodes.SwitchNode, nodes.HubNode)):
                if inOtherNetwork(net):
                    continue

            try:
                NetworkElement(self, self, net)
            except:
                if hasattr(net, "name") and net.name:
                    self.coreSession.warn('Unsupported net: %s' % net.name)
                else:
                    self.coreSession.warn('Unsupported net: %s' % net.__class__.__name__)
 Add networks in the session to the scenPlan.
        
Add networks in the session to the scenPlan.
Add networks in the session to the scenPlan .
def addNetworks(self):
        for net in self.coreSession.objs():
            if not isinstance(net, nodes.PyCoreNet):
                continue
            if isinstance(net, nodes.CtrlNet):
                continue
            if isinstance(net, (nodes.SwitchNode, nodes.HubNode)):
                if inOtherNetwork(net):
                    continue
            try:
                NetworkElement(self, self, net)
            except:
                if hasattr(net, "name") and net.name:
                    self.coreSession.warn('Unsupported net: %s' % net.name)
                else:
                    self.coreSession.warn('Unsupported net: %s' % net.__class__.__name__)
def addNetworks ( self ) : for net in self . coreSession . objs ( ) : if not isinstance ( net , nodes . PyCoreNet ) : continue if isinstance ( net , nodes . CtrlNet ) : continue if isinstance ( net , ( nodes . SwitchNode , nodes . HubNode ) ) : if inOtherNetwork ( net ) : continue try : NetworkElement ( self , self , net ) except : if hasattr ( net , "name" ) and net . name : self . coreSession . warn ( 'Unsupported net: %s' % net . name ) else : self . coreSession . warn ( 'Unsupported net: %s' % net . __class__ . __name__ )
Add networks in the session to the scenPlan.
Add networks in the session to the scenPlan .
''' Add networks in the session to the scenPlan.
        ''' # Do not add switches and hubs that belong to another network
self