def parse_ttag(token, required_tags):

    if isinstance(token, template.Token):
        bits = token.split_contents()
    else:
        bits = token.split(' ')
    tags = {'tag_name': bits.pop(0)}
    for index, bit in enumerate(bits):
        bit = bit.strip()
        if bit in required_tags:
            if len(bits) != index-1:
                tags[bit.strip()] = bits[index+1]
    return tags
Test if it configure Network Interface
dataset/ETHPy150Open hzlf/openbroadcast/website/apps/tools/templatetags/utils.py/parse_ttag--crossover with--dataset/ETHPy150Open saltstack/salt/tests/unit/modules/ilo_test.py/IloTestCase.test_configure_network