def is_valid_vlan_id(vlan_id):
    """
    check whether vlan_id is in the range of [1,4094]

    :param vlan_id: vlan id to validate
    :returns: True or False
    """

    return True if vlan_id and (vlan_id > 0 and vlan_id < 4095) else False