cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
148
Views
0
Helpful
1
Replies

IOS-XE Platforms: Express Setup / Web - Config Restore w/ Global Macro

BrianSekleckiGE
Level 1
Level 1

All:

IOS-XE platform question (Catalyst IE-9300 for the purposes of this discussion)

I'd like to use the same Configuration template for both a CLI or Import/Recover mode from the web-GUI.

My configuration templates use Macros (automatically generated), and then call a very small configuration file that calls/references those macros (Global and Interface).  However, when I Import a configuration file like the one below, it silently fails to apply.

1) Is there maybe a "debug parser ..." for configurations obtained via the web interface? (Like "show parser macro.." family of cmds?)

2) Has anyone tried this / done this before? I will open a TAC Case if not.

Example CFG to import:

!

macro name TestGlobalMacro
!
!
no cdp run
no lldp run
!
!
@

macro global apply TestGlobalMacro

!
!

After importing:

BrianSekleckiGE_0-1732215482858.png

...but sure enough, CDP/LLDP still enabled.  And the that macro does not appear in the output of "show parser macro brief"

~BAS

1 Reply 1

BrianSekleckiGE
Level 1
Level 1

Update: I seem to have made some progress here.  It is not obvious from the GUI, but, it seems that the Web Interface on IOS-XE switches updates the configuration, writes it to "startup-config" (Staged to take effect on next reboot), but doesn't apply it Running Configuration.

 

So after you upload a configuration with Macros, one has to use the button on the GUI "Reload Chassis" to have the configuration take affect.

It seems there is now way (on the current code revisions) to have the new uploaded configuration parsed into running-configuration in real-time.

Review Cisco Networking for a $25 gift card