cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
623
Views
1
Helpful
3
Replies

ios:interface range - is it supported?

kbarve
Cisco Employee
Cisco Employee

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.


1 Accepted Solution

Accepted Solutions

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

View solution in original post

3 Replies 3

Mark Swanborough
Cisco Employee
Cisco Employee

"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 .:|:..:|:.

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

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>