10000 The asterisks at the end of the key_name are removed · Issue #97 · dmulyalin/ttp · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
The asterisks at the end of the key_name are removed #97
Closed
@myxx921

Description

@myxx921

hi, I try use key_value as key_name of group interfaces.{{ sap }}
if the key_value ends with an asterisk in the dictionary key, this asterisk disappears

data = """
interface "port lag-4:1629" create
    sap lag-4:1629.* create
exit
"""

template = """
<group name="interfaces.{{ sap }}**">
interface "{{ interface | ORPHRASE | _start_ }}" {{ ignore }}
    sap {{ sap | _exact_ }} {{ ignore }}
exit {{ _end_ }}
</group>
"""

[{'interfaces': {'lag-4:1629.': {'interface': 'port lag-4:1629'}}}]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0