Ethernet Switching
Reply
Contributor
monodactylus
Posts: 23
Registered: ‎03-07-2010
0

how to delete a portion of the config that doesn't exist?

Hello,

 

     I made a typo earlier in setting up this switch, but fixed it at some point.  Now when I try to commit, I get this error, but I can't find it to delete it.  Anyone have any suggestions?

 

root@ex-3200# commit error: couldn't find end-range in deleted tree for memeber-range

error: deleted interface-ranges expansion failed

error: interface-ranges expansion failed

 

[edit]

root@ex-3200# show | match memeber-range 

 

[edit]

root@ex-3200#

 

Thank,

Will

 

Recognized Expert
aweck
Posts: 255
Registered: ‎07-24-2009
0

Re: how to delete a portion of the config that doesn't exist?

You could try this.  I had luck using this approach to delete unreferenced parts of the config before.  If you know the stanza cause you problems you could instead just perform on relevant stanza.

 

super@host# show | display set | no-more
<copy output - minus anything you want removed>

 

super@host# delete
This will delete the entire configuration
Delete everything under this level? [yes,no] (no) yes

super@host# load set terminal
[Type ^D at a new line to end input]
<paste copied output here>

 

super@host# commit and-quit

 

 

 

Juniper Elite Partner
JNCIE-ENT #63, JNCIE-SP #705, JNCIE-SEC #17, JNCIS-FWV, JNCIS-SSL
Contributor
monodactylus
Posts: 23
Registered: ‎03-07-2010
0

Re: how to delete a portion of the config that doesn't exist?

Hello,

 

    Actually I discovered what the issue was with this earlier in the week.  I'm not sure if this applies to all version of JUNOS, but I am on  10.4R3.4.  I was in the interfaces interface-range hierarchy, and had done a replace pattern x with y to change the last port on a member-range.  Apparently you can't commit if you do this.  You have to delete the entire member-range and recreate it.  I had to rollback to a previous config to undo the changes I had done, and then commit.  Although I'll keep your post in mind for the future.

 

Thanks,

Will

 

 

Copyright© 1999-2013 Juniper Networks, Inc. All rights reserved.