07-12-2017 01:10 AM - edited 03-01-2019 03:55 AM
ios:interface range - is it supported?
I am looking for pushing the configuration to multiple switch ports using interface range command.
I am using cisco-ios 4.3.1 package, and I don find cli supporting "range" keyword.
Please let me know if its supported or any alternate example to do such bulk port configuration.
Solved! Go to Solution.
07-12-2017 02:51 AM
Hi Mark,
Thanks for the reply.
Is there any known alternative?
Like i came across "foreach" in xml template.
Any working example if you can provide, it will great.
Regards
Kirti
07-12-2017 01:29 AM
"range" is a IOS CLI macro. It generates config, but it is not part of the IOS config language.
As such, it's not supported in the Device model. Sorry, that's probably not the answer you are hoping for.
.:|:..:|:. Mark Swanborough | Orchestration & Cloud Platform Architect | Advanced Services | Cisco .:|:..:|:.
07-12-2017 02:51 AM
Hi Mark,
Thanks for the reply.
Is there any known alternative?
Like i came across "foreach" in xml template.
Any working example if you can provide, it will great.
Regards
Kirti
07-13-2017 08:08 AM
Hi,
foreach is explained in the NSO developer guide.
Here the example in the guide.
Roque
<ip xmlns="urn:ios">
<route>
<vrf>
<name>VPN{/vpn-number}</name>
<ip-route-forwarding-list foreach="{tunnel}">
<prefix>{network}</prefix>
<mask>{netmask}</mask>
<forwarding-address>10.255.254.{(tunnel-number-1)*4+2}</forwarding-address>
</ip-route-forwarding-list>
</vrf>
</route>
</ip>
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide