In ocata, the tenant network port for baremetal instances
is owned by compute:<zone> instead of baremetal:<zone>. The
vnic_type for those ports is still 'baremetal', so use the
vnic_type to identify baremetal ports.
Change-Id: I677148a7964ea4b3673cc918999073b2cd5caafd
Implements validate_network_rbac_policy_change which is
needed in NeutronNets after adding registry decorator in
neutron.db.db_base_plugin_v2.
Change-Id: Ia77fb2a5a820cab9125c0177e87418c7f0869430
The get_session() method of oslo.db is depreceated in Ocata and slated
for removal in Pike. This change updates calls to grab the desired type
of session.
Closes-Bug: 1676883
Change-Id: I59504db34dc08c9a065559d548ad49d807bc1f94
No need to send static segment information to CVX during port creation, when
HPB is not supported. The static segment info is sent to CVX during network
creation.
Change-Id: I2da201b9ab3362aa1e1a15d4693d6578c400e7e0
There were a couple of remaining places that a previous change
failed to replace session passing with context passing. This
rectifies that as well as an incompatible keyword arg and a
deprecated import.
Change-Id: Ib4d92995d237522ca3ae84f7e52804d24939abb8
We have a number of functions that expect to get session as one
the arguments. Passing session is not correct and this prevents
of usage new enginefacade which expect context to be passed and
session will be injected in current context.
This change is based on change in Neutron, so here all affected
places are fixed to pass context.
Depends-On: Ie1c54138ceaf9ac6f0674ad2786d4aaea9c80f73
Partially-Implements blueprint: enginefacade-switch
Change-Id: I878761a07d3ce826b8585877194851129a21c64e
The device type was not being checked when unplugging the baremetal
ports from the network. This patch adds the check and tests around it.
I've changed some variable names to make the code clearer.
Change-Id: Id5d5c473d2dbb42a94d7f2a878b3e626c40f983c
This patch adds Ironic support to Arista ML2 driver.
This patch also adds support for Security Groups for
baremetal instances
Change-Id: I7449f511d172678a77e1b5f087f1b182a78948c0
With this patch, VLANs required by the DVR ports are configured on the switch
interface connected to the compute node hosting the DVR instance.
Change-Id: Ia8d0b4d4e191efd539a4353481fc6c2f16c67934
Closes-Bug: #1579964
If a network has ports attached to it, do not delete the network
instead raise an exception so that user knows about this
condition.
Additionally, during initialization, when networks are deleted,
remove all the ports associated with the network.
Change-Id: Idb72305ac37dfe0c865fe09fbc5ab784d807906d
Closes-bug: #1573207
When we added support for shared networks, we introduced a bug that
can result in the arista ML2 driver reacting to a port-create for a
non-vlan network if the network is a shared network. With this
change the arista ML2 driver will only react to port creates for
shared networks if they are vlan networks.
Change-Id: I4babcb82bd3efd7d189f5a284916507be6f41a70
Closes-Bug: #1553058
This patch enables creation of ports which are not attached to any
resources. These ports can later be attached and detached from the
resource.
Change-Id: Ic04bf5b8aad58a7fed63a9978b9b244fcf5e407f
On neutron restart, the internal network created for HA router was cleaned up
as there was no tenant associated with that network. This patch ensures that
networks without tenant id are handled correctly.
Closes-Bug: 1494310
Change-Id: I0d9db9bc8fa48ac211fee5fde6aa3e2dc8455361
This patch moves all of remaining Arista code
from neutron repo to openstack/networking-arista
Change-Id: Ifeb5986a45acebf2e53e4769706d9d2e46b62f50
Closes-Bug: 1479937
Moving back-end drivers for Arista's L3
Service Plugin from Neutron tree to
networing_arist.
Change-Id: Ie394c31ae317a71f00be7195e15e05dc56df0ad0
Closes-bug: 1428904
Neutron has moved to oslo.log for all logging and
the log module in neutron has been removed.
networking-arista was using the log module which
caused the driver to fail loading.
Change-Id: I433a15d66a6bb7d8e3f4992d31fceedd97169616
This fix moves all the back-end drivers for of
Arista ML2 driver from Neutron main tree to
networking-arista project.
Change-Id: I030a3aa310205da27929a405ec4619e78824fcc2
Closes-bug: 1412577