Commit Graph

8 Commits

Author SHA1 Message Date
Jenkins b720323d61 Merge "Use versionedobjects PCIAddress field" 2017-06-19 12:40:06 +00:00
Moshe Levi aa9e198021 Use versionedobjects PCIAddress field
Change-Id: Ic3c6286728a07e3e68a24d034e4c48e8b2a4f582
2017-06-17 12:05:39 +03:00
Moshe Levi db9ef89ee0 Fix typo VIFVIFHostDeviceDevType to VIFHostDeviceDevType
Change-Id: I7a68e4ec0469ca5e676f2e7c88c9535d9747ac29
2017-06-17 11:14:29 +03:00
blue55 9ec0b9e66b Remove log translations
Log messages are no longer being translated. This removes all use of
the _LE, _LI, and _LW translation markers to simplify logging and to
avoid confusion with new contributions.

See: http://lists.openstack.org/pipermail/openstack-i18n/2016-November/002574.html
     http://lists.openstack.org/pipermail/openstack-dev/2017-March/113365.html

Change-Id: Ide6c0b2a565aa77b2bbef71c6652edf1e2ac2017
2017-03-24 16:25:28 +08:00
Moshe Levi 6a099ff741 Adding dev_type field to VIFHostDevice
The dev_type represent the type of the host device.
Valid values are ethernet and generic.
Ethernet is <interface type='hostdev'>
Generic is <hostdev mode='subsystem' type='pci'>

The Generic type is usefully for device which is not
traditional ethernet NIC device e.g. InfiniBand

Change-Id: I3d1b782ba730ab74c627e6b8028150f9e8d15ecd
2016-02-11 12:07:47 +02:00
Moshe Levi fb2c061296 Fix PciAddress regex
This patch fixes the PciAddress regex according to
lspci man http://linux.die.net/man/8/lspci
and adds a unit test for it. Eventually this should
be moved to oslo_versionedobjects

Change-Id: I0813601dc76274c88b1ab68c82e786bdea93be67
2016-02-10 13:16:52 +02:00
Daniel P. Berrange d8b14f110e Fix definition of subnet object to not be untyped strings
The subnet object fields are currently all just untyped
strings. These should all be formally defined objects
or fields with type checking

Change-Id: Id6ee8b1e89bf3e292406b2c7a4b6f8686e8e0da7
2016-01-28 16:12:21 +00:00
Daniel P. Berrange 11af752a5a Add formal classes for each of the types of VIF backend config
The current VIF object model is just a direct representation
of the ill-defined nova.network.model.VIF class. Many of the
attributes are only relevant for certain VIF types. Other
attributes are just indirectly representing different plugin
schemes (eg OVS hybrid vs direct should be done as two
plugins, not a boolean on the VIF object).

Some of the attributes are generic metadata related to the
network port that can be associated with multiple VIF types
regardless of how the port is connected to the guest.

This refactors the VIF class so that there is a base class
defining the common data, and then subclasses providing the
VIF type specific data. There are initially 5 core VIF backend
class defined, which are sufficient to cover all the current
usage in the libvirt driver and some usage in other drivers.
It is expected that a couple more VIF types may be added for
vmware/hyper, when those drivers are later converted. The
generic network port profile data is represented by the new
VIFPortProfileBase class and its subclasses.

The various property/methods which were defined are also
removed as most of this is logic that belongs in the
corresponding vif plugin implementation, not on the core
data model.

Change-Id: Id286f85cd5fe7ca80f02d95f6380979a0d920ef6
2016-01-28 16:12:18 +00:00