Solved

easy way to remove lines of config

  • 29 May 2020
  • 4 replies
  • 421 views

Hi,

I am a Cisco CCNP that is learing Extreme. On Cisco I can take any command and put “no” in front of it to completely delete it from the config file.  I have found that “unconfigure” and “disable” accomplish the same thing on extreme.  The issue is that it will not let me include the entire line.  for example:

#does not work
unconfigure qosprofile QP1 minbw 0 maxbw 100 priority low ports 4

#works
unconfigure qosprofile

This is driving me crazy. I just need to write a script that removes some configuration on one of our existing switches to allow me to repurpose some of the ports.  I don't want to test each command to see how much I can include of the comand to make the system happy.

Is there a universal “delete this line” command?

icon

Best answer by Ronald Dvorak 29 May 2020, 09:24

 

Is there a universal “delete this line” command?

 

No

 

-Ron

View original

4 replies

Edit,

It’s actually like this

#does not work
unconfigure qosprofile QP1 minbw 0 maxbw 100 priority low ports 4

#works
unconfigure qosprofile port 4

 

Userlevel 7

 

Is there a universal “delete this line” command?

 

No

 

-Ron

Userlevel 3

Sometimes also “unconfigure” won’t cut it and the opposite of

config this add that

becomes

config this delete that

Yeah it’s not exactly straightforward all the time :D

Thanks for the answers!

 

I will submit a feature request as this seems like something that should be available. 

Reply