[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [RFC] netlink monitor thread



Hello,

I'm trying to get libvirt to recognize port profile disassociations,
i.e. when the switch removes a port profile because lldpad has
unexpectedly quit or the profile has been changed in the switches
profile database, or when something went wrong otherwise.

My take on this for testing was to have an external deamon log
port profiles and changes to them, and tell lldpad to set them
again if needed. But this is not really practical.

I would like to find a way to have the libvitrd monitor netlink
and take appropriate measures if, for example, a port profile
is removed unexpectedly, that is: to call the VMs network setup
again if macvtap/VEPA is used.
There would be other benefits, like the detection if a link goes
down on a used interface, or a device is unexpectedly configured
down by another component.

Looking at the deamon code I'm unclear on how to do this properly,
this is a very linux specific thing, and the asynchronous nature of the
request handling makes starting the monitor thread later on difficult.

Thoughts, ideas ?

D. Herrendoerfer


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]