Closed pperesbr closed 2 years ago
I don't know if it's the correct way, but I did like this and worked:
<group name="bgp_vpn*">
ipv4-family vpn-instance {{ name }}
<group name="import_routes*">
import-route {{ protocol }} route-policy {{ rpl }}
</group>
<group name="import_routes*">
import-route {{ protocol }}
</group>
</group>
Tks,
Paulo
Yeah, you need to add multiple groups to follow text outpt hierarchy.
Try this:
<group name="bgp_vpn*">
ipv4-family vpn-instance {{ name }}
<group name="import_routes*">
import-route {{ protocol | _start_ }} route-policy {{ rpl }}
import-route {{ protocol | _start_ }}
</group>
</group>
it should give same results as your template, but makes use of _start_
indicator.
Closing this one, please reopen if any further help needed.
I'm using TTP Template Text Parser to get information from a Huawei device.
In the output of the command I have this:
See that the import route, I may or may not have applied the configuration of a route-policy.
What I want is to build a list where, if there is a route-policy applied, only a new attribute is inserted, like this:
I tried this and it didn't work:
Tks,
Paulo