06-03-2019 02:07 AM
Hi.
I am wondering if it is possible in IOS to assing a value to a variable (for instance $access_vlan) from within a macro?
I do not want the set the value as a input value to the macro. More specific I want to assign the current access vlan number to a variable to be able to set "switchport trunk native vlan $access_vlan" in a macro.
Regards,
Petter
06-03-2019 02:14 AM
06-03-2019 02:45 AM
Hi.
I do not want to pass the value as an argument. The goal is to run the macro from ISE with just the name of the macro. I do not know the what the access vlan number is on a specific switch.
If possible I would like to assign the value like this:
$access_vlan = [somehow determine the access vlan number, show command or whatever]
-Petter
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