• Karel Koci's avatar
    nsfarm/lxd: remove exclusive devices and define all devices in image · 4f971f15
    Karel Koci authored and Karel Koci's avatar Karel Koci committed
    This removes concept of exclusive device. The only use of it was to pass
    exclusive access to network interface but that is not essentially
    required as it is even more versatile to use macvlan as thus we can
    easily spawn multiple containers to simulate network.
    The only known use for physical device pass trough and thus exclusive is
    Wi-Fi. It won't be possible to use macvlan for it. At the same time this
    is not an issue as it is not expected that we are going to be reusing
    this interface in single tests run multiple times over and over. In the
    end there is no need to automatically suspend containers to steal
    devices as it has been implemented (and in reality not finished).
    
    The introduced device management now required all devices to be defined
    in image as attributes. This gives image definition control over name of
    this device in container. It is up to container user to assign
    appropriate real device for it. This is done using device map that is
    simply pair of attribute and real device specifier. This concept can be
    in future expanded to even encode additional configuration if have need
    for it.
    4f971f15