'convert vlan range to vlan list'

def vlan_region(self, vlanid_list):

    vlan_list = []
    peerlistlen = len(vlanid_list)
    for num in range(peerlistlen):
        if vlanid_list[num].isdigit():
            vlan_list.append(vlanid_list[num])
        else:
            vlan_s = self.vlan_series(vlanid_list[num].split('-'))
            vlan_list.extend(vlan_s)
    return vlan_list
