I work a lot with Cisco NX-OS switches. These switches change the prompt depending on the configuration level you are at.
It would help greatly to a lot of Network Engineers if we could add prompts for Cisco devices. Here's an example of how the prompt behaves:
switch# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
switch(config)# interface ethernet1/1
switch(config-if)# exit
switch(config)# router bgp 65501
switch(config-router)# address-family ipv4 unicast
switch(config-router-af)# exit
switch(config-router)# neighbor 10.101.0.1
switch(config-router-neighbor)# address-family ipv4 unicast
switch(config-router-neighbor-af)# exit
switch(config-router-neighbor)# exit
switch(config-router)# exit
switch(config)# interface vlan 100
switch(config-if)# hsrp 1
switch(config-if-hsrp)# exit
switch(config-if)# exit
switch(config)# exit
switch#
As you can see, there are multiple configuration levels. These are just some examples. The commands to jump into each configuration level are very static, maybe this would make it easier to implement. Maybe a JSON file with the prompt and the regex that triggers the next prompt would work and also would allow the user to expand the initial file if needed.
If you consider implementing this prompt and need some help defining the different prompt levels, please reach out to me.
Thanks!
I work a lot with Cisco NX-OS switches. These switches change the prompt depending on the configuration level you are at.
It would help greatly to a lot of Network Engineers if we could add prompts for Cisco devices. Here's an example of how the prompt behaves:
As you can see, there are multiple configuration levels. These are just some examples. The commands to jump into each configuration level are very static, maybe this would make it easier to implement. Maybe a JSON file with the prompt and the regex that triggers the next prompt would work and also would allow the user to expand the initial file if needed.
If you consider implementing this prompt and need some help defining the different prompt levels, please reach out to me.
Thanks!