def METHOD_NAME(iface_name, state, pid):
    if pid is None:
        return VlanPort.cmd('ip link set %s %s' % (iface_name, state))
    else:
        return VlanPort.cmd('nsenter -t %s -n ip link set %s %s' % (pid, iface_name, state))