cancel
Showing results for 
Search instead for 
Did you mean: 

easy way to remove lines of config

easy way to remove lines of config

Jighting
New Contributor

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?

1 ACCEPTED SOLUTION

Ronald_Dvorak
Honored Contributor
4 REPLIES 4

Jighting
New Contributor

Thanks for the answers!

 

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

jeronimo
Contributor III

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 😄

Ronald_Dvorak
Honored Contributor

 

No

 

-Ron

Jighting
New Contributor

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

 

GTM-P2G8KFN