FYI, I started to implement a POC and created a review [1].

The vrouter module broadcast netlink mesages when a route is added and
the 'rt --monitor' command gets and prints these messages:

cloud@contrail-master:/opt/stack/contrail$ sudo 
/opt/stack/contrail/build/debug/vrouter/utils/rt --monitor
       7       0 12          0:0:5e:0:1:0                Df                    
-            3               0
       7       0 48          2:ee:e3:e5:c5:54            Df                    
-            3               0
AF_INET        0 10.0.0.1/32             0            T          -              
5        -
AF_INET        0 10.0.0.255/32           0            T          -              
5        -
AF_INET        0 224.0.0.0/8             0            T          -              
5        -
AF_INET        0 10.0.0.0/24             0            T          -              
9        -
AF_INET6       0 ff00::/8                0            T          -              
5        -

[1] https://review.opencontrail.org/#/c/27344

[email protected] writes:

> 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
[email protected]
http://lists.opencontrail.org/mailman/listinfo/dev_lists.opencontrail.org

Reply via email to