We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hi, if key_value contains \1, \2 , \3 , etc. and this key_value is used to compose get error
from ttp import ttp from pprint import pprint data = r""" routing-instances { "some_routing_instance_70\1" { instance-type vrf; } } """ template = """ <group name="interfaces.{{ ri }}**"> routing-instances {{ ignore }} {{ ri | _start_ }} { } {{ _end_ }} </group> """
parser = ttp(data, template) parser.parse() output = parser.result() pprint(output)
---------------------------------error-------------------------------------------------------
raise s.error(f"{source} {state} {type(state)} invalid group reference %d" % index, pos) re.error: "some_routing_instance_70\1" re.compile('{{\sri\s}}') <class 're.Pattern'> invalid group reference 1 at position 26
The text was updated successfully, but these errors were encountered:
fix for issue #98
f22be5f
No branches or pull requests
hi, if key_value contains \1, \2 , \3 , etc.
and this key_value is used to compose get error
parser = ttp(data, template)
parser.parse()
output = parser.result()
pprint(output)
---------------------------------error-------------------------------------------------------
I changed the output to see what we got as input
raise s.error(f"{source} {state} {type(state)} invalid group reference %d" % index, pos)
re.error: "some_routing_instance_70\1" re.compile('{{\sri\s}}') <class 're.Pattern'> invalid group reference 1 at position 26
The text was updated successfully, but these errors were encountered: