def oc_to_vlan_range(value):
    """
    Converts an industry standard vlan range into a list that can be
    interpreted by openconfig. For example:

    ["1", "2", "3..10"] -> "1, 2, 3-10"
    """
    return ",".join(["{}".format(s).replace("..", "-") for s in value])