def METHOD_NAME(session, ifname, disabled=True):
    """
    Enable or disable guest nic
    """
    os_type = params.get("os_type", "linux")
    if os_type == "linux":
        shut_down_cmd = "ifconfig %s " % ifname
        if disabled:
            shut_down_cmd += " down"
        else:
            shut_down_cmd += " up"
        session.cmd_output_safe(shut_down_cmd)
    else:
        if disabled:
            utils_net.disable_windows_guest_network(session, ifname)
        else:
            utils_net.enable_windows_guest_network(session, ifname)