[Xorp-hackers] %delete in child not called when deleting top parent

Uri Yanai Uri.Yanai at ngsoft.com
Thu Mar 17 09:03:35 PDT 2011


Hi
I am trying to delete a top level tree item with no success
For example using the following template file in xorp-ct Version 1.8-CT

bridges{
      bridge @: txt {
        }
}

bridges{
        %modinfo:provides brdg;
        %modinfo:default_targetname "brdg";
      bridge @: txt {
                %create: xrl "brdg/brdg/0.1/bridge_add?bridge:txt=$(@)";
                %delete: xrl "brdg/brdg/0.1/bridge_delete?bridge:txt=$(@)";
        }
}

In xorpsh running

root at XORP# delete bridges
Deleting:
    bridges {
        bridge one {
        }
    }

OK
[edit]
root at XORP# commit
OK
[edit]

Doesn't call the child's bridge(one)  bridge_delete() method has expected
On the other hand running

root at XORP# delete  bridges bridge one
Deleting:
    one {
    }

OK
[edit]
root at XORP# commit
OK
[edit]
Works OK calling has expected the bridge_delete() method

What is wrong here

Thanks for your help
Uri
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ICSI.Berkeley.EDU/pipermail/xorp-hackers/attachments/20110317/319318c5/attachment.html 


More information about the Xorp-hackers mailing list