def addphys(self, netnum, node):
        ''' Keep track of PhysicalNodes and which network they belong to.
        '''
        nodenum = node.objid
        self.phys[nodenum] = node
        if self.physnets not in netnum:
            self.physnets[netnum] = [nodenum,]
        else:
            self.physnets[netnum].append(nodenum)
dataset/ETHPy150Open coreemu/core/daemon/core/mobility.py/MobilityManager.addphys/swapped operands of `not in`