'check VLAN id'

def is_vlan_valid(self, vid, name):

    if (not vid):
        return
    if (not vid.isdigit()):
        self.module.fail_json(msg=('Error:    %s    is    not    digit.' % name))
        return
    if ((int(vid) < 1) or (int(vid) > 4094)):
        self.module.fail_json(msg=('Error:    %s    is    not    in    the    range    from    1    to    4094.' % name))
