Exemple #1
0
    def __activeInterfaces(self):
        """
        Active link (ifconfig nic up) for the NICs with no link

        @rtype  : list
        @returns: list of NICs with link
        """
        interfaces = self.__devices
        activeInterfaces = Network.getLinkedInterfaces(False)
        deactiveInterfaces = [f for f in interfaces.keys() if not f in activeInterfaces]
        Network.activeLinkInterfaces(deactiveInterfaces)
        activeInterfaces = Network.getLinkedInterfaces(False)
        return activeInterfaces