Rajagopalan Sivaramakrishnan <r...@juniper.net> writes: > There isn’t a utility to do this currently. It would be a useful thing > to add. If you are interested in contributing this change, please let > us know and we can work with you.
It seems the vrouter module doens't broadcast any netlink messages, and then, it is not possible to implement a tool such as `ip mon` for the vrouter module. Another way would be to use the nlmon module and launch a capture to get netlink messages... but I've the feeling this is not really clean in a prod env! Do you confirm these statements? So, to be able to get netlink notifications from the vrouter, the vrouter module should send some netlink broadcast messages when interesting events occur. Maybe, it would be easiest to emit notifications (netlink or not) from the vrouter agent side (but I would prefer to emit notifications as close as possible to the dataplane). But I didn't explore this way. What do you think about this? Are there other ways to get notifications? Antoine. > Raja > > On 12/5/16, 6:41 AM, "Dev on behalf of l...@abesis.fr" > <dev-boun...@lists.opencontrail.org on behalf of l...@abesis.fr> wrote: > > Hi All, > > I would like to dump messages between the vrouter userspace and the > vrouter kernel module. I'm especially interested by messages related to > vrfs and vifs. > > With iproute2, there is the `ip monitor` command that dumps messages in > realtime. > Is there something similar with Contrail, ie. connect to netlink, decode > sandesh messages and dump them ? > If not, do you think it would be possible (and reasonable) to do this? > > Thanks > > _______________________________________________ > Dev mailing list > Dev@lists.opencontrail.org > http://lists.opencontrail.org/mailman/listinfo/dev_lists.opencontrail.org > _______________________________________________ Dev mailing list Dev@lists.opencontrail.org http://lists.opencontrail.org/mailman/listinfo/dev_lists.opencontrail.org