06-12-2011 06:51 PM
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
root@ex-3200# show | match memeber-range
06-17-2011 06:50 AM
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>
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
JNCIE-ENT #63, JNCIE-SP #705, JNCIE-SEC #17, JNCIS-FWV, JNCIS-SSL
06-17-2011 07:07 AM
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.