This is my second post on this subject.
According to XORP documentation
        “If a node that is deleted does not have a %delete command, then the 
%delete commands of its children are called instead. This rule is      applied 
recursively for each child that does not have a %delete command”    

I have noticed that this isn't the case.

For example, in interfaces.tp I change delete_interface to delete_interfacex

interface @: txt {                                                              
                                            
        %delete:        xrl 
"$(interfaces.targetname)/ifmgr/0.1/delete_interfacex?tid:u32=$                 
                                                                    
(interfaces.TID)&ifname:txt=$(@)";   

In xorpsh I run the following

root@Me# set interfaces interface eth1
[edit]
root@Me# commit 
OK
[edit]   
root@Me# delete interfaces interface eth1
Deleting: 
    eth1 {
    }

OK
[edit]
root@Me# commit 
Commit Failed
201 Resolve failed[edit]

But I do succeed when I run

root@Me# delete interfaces
Deleting: 
    interfaces {
-       interface eth1 {
-       }
    }

OK
[edit]
root@Me# commit 
OK
[edit]

Thanks for your help
Uri
_______________________________________________
Xorp-hackers mailing list
[email protected]
http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers

Reply via email to