import re


def get_vlan_parent(device, vlan):
    """Return the parent interface of a VLAN subinterface.

    :param device: VLAN interface name.
    :param vlan: VLAN ID.
    :returns: parent interface name.
    """
    return re.sub(r'\.{}$'.format(vlan), '', device)