Open pdimop opened 1 year ago
data_to_parse =
vlan 100 interface "Eth1" description "management interface" exit exit vrf 200 interface "Eth2" iplist address bbbb::::2/128 exit exit exit
ttp_template =
<group name="vlan.{{ vlan }}**"> vlan {{ vlan | _start_ }} <group name="{{ interface }}**"> interface "{{ interface | _start_ }}" description "{{ description | re(r".*") }}" <group name="iplist**"> iplist{{ _start_ }} <group> address {{ address | _start_ }} </group> ## end of addresses exit{{ _end_ }} </group> ## end of iplist exit{{ _end_ }} </group> ## end of interface exit{{ _end_ }} </group> ## end of vlan
output=
[[{ 'vlan': { '100': { 'Eth1': { 'description': 'management interface', 'iplist': { 'address': 'bbbb::::2/128' } } } } }]]
Somehow it matches the IP of another interface. BR
the issue is still there in 0.9.5
data_to_parse =
ttp_template =
output=
Somehow it matches the IP of another interface. BR