Hey KK,

 <event name="Datapath_join_event">
      <filter>circsw</filter>
      <filter>marie</filter>
      <filter>eventlogger</filter>
      <filter>dhcp</filter>
      <filter>authenticator</filter>
      <filter>discovery</filter>
    </event>

ya - it works now. I'm a bit bummed tho - I thought this list meant that if a component is not on it then it would get called in some random order, but only after the ones on this list have been called.

But this does not seem to be the case which is worrying.
I see that there a bunch of other components like topology and authenticator and switchstats and spanningtree which have also registered for datapath_join_events - if I use them I guess I have to add it to the list above to preserve my desire to STOP propagation, but the danger here is that I have no idea what the ordering between them should be -- isn't that a problem?

Thanks for your response tho
Cheers
Saurav





On Jun 19, 2010, at 7:29 PM, kk yap wrote:

Hi Saurav,

Put in discovery too.  And let us know if that works.

Regards
KK

On 19 June 2010 19:23, Saurav Das <[email protected]> wrote:

   <event name="Datapath_join_event">
     <filter>circsw</filter>
     <filter>marie</filter>
     <filter>eventlogger</filter>
     <filter>dhcp</filter>
     <filter>authenticator</filter>
   </event>

On Jun 19, 2010, at 7:16 PM, kk yap wrote:

What is your order on nox.xml?

Regards
KK

On 19 June 2010 18:59, Saurav Das <[email protected]> wrote:

Hello,

I am trying to order the execution of event handlers by changing nox.xml. Specifically I made the top-most filter for datapath_join_event to be my
component circsw.
The discovery module isn't even on that list, so at least it should get
it
after I do.
The idea is that for some datapath_joins, my component will STOP the
propagation, so discovery should never see it.
I have logs in both modules, just to see if they receive it or not.

Here is the funny thing:

If i launch from command line ./nox_core -v -i ptcp:6655 discovery
circsw,
then I see both logs
or if I add discovery as a dependency to circsw/meta.xml, and launch just
circsw from the command line, I still see both log messages/

But but if I reverse the order of the two components in the command
line(and
remove the dependency of circsw on discovery),
then I don't get the discovery log message, which is the correct
behavior.

I don't think we should depend on command line ordering to get correct
behavior.

What am I doing wrong?

Thanks
Saurav

_______________________________________________
nox-dev mailing list
[email protected]
http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org


Saurav Das
PhD Candidate
Electrical Engineering
Stanford University
(W) 650 724 3409



Saurav Das
PhD Candidate
Electrical Engineering
Stanford University
(W) 650 724 3409


_______________________________________________
nox-dev mailing list
[email protected]
http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org

Reply via email to