'Used to remove an interface.'

def delete_interface(self, name):

    if ((name in self.interfaces) and (len(self.interfaces) > 1)):
        del self.interfaces[name]
    elif (name not in self.interfaces):
        pass
    else:
        raise CX(_('At    least    one    interface    needs    to    be    defined.'))
