Skip to content

Commit 8701f47

Browse files
authored
Merge pull request #912 from kush1093/master
Merging Ocata-devel with the Master branch
2 parents 9949a2b + 90c60b2 commit 8701f47

7 files changed

Lines changed: 23 additions & 20 deletions

File tree

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ to Openstack_CLA@f5.com prior to their code submission being included
9494
in this project.
9595

9696

97-
.. |Build Status| image:: https://travis-ci.org/F5Networks/f5-openstack-lbaasv2-driver.svg?branch=stable/newton
98-
:target: https://travis-ci.org/F5Networks/f5-openstack-lbaasv2-driver?branch=stable/newton
97+
.. |Build Status| image:: https://travis-ci.org/F5Networks/f5-openstack-lbaasv2-driver.svg?branch=stable/ocata
98+
:target: https://travis-ci.org/F5Networks/f5-openstack-lbaasv2-driver?branch=stable/ocata
9999
.. |slack badge| image:: https://f5-openstack-slack.herokuapp.com/badge.svg
100100
:target: https://f5-openstack-slack.herokuapp.com/
101101
:alt: Slack

docs/README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ What's Next
187187

188188
`Configure and start the F5 Agent`_.
189189

190-
.. |Build Status| image:: https://travis-ci.org/F5Networks/f5-openstack-lbaasv2-driver.svg?branch=stable/newton
190+
.. |Build Status| image:: https://travis-ci.org/F5Networks/f5-openstack-lbaasv2-driver.svg?branch=stable/ocata
191191
:target: https://travis-ci.org/F5Networks/f5-openstack-lbaasv2-driver
192192
:alt: Build Status
193193

f5lbaasdriver/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "10.2.0"
1+
__version__ = "11.0.0"

f5lbaasdriver/v2/bigip/disconnected_service.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@
1313
# limitations under the License.
1414
#
1515

16+
from neutron.db import segments_db
1617
from neutron.plugins.ml2 import db
1718
from neutron.plugins.ml2 import models
19+
1820
from oslo_log import log as logging
1921

2022
LOG = logging.getLogger(__name__)
@@ -50,8 +52,8 @@ def get_network_segment(self, context, agent_configuration, network):
5052
agent_configuration.get('tunnel_types', [])
5153
]
5254
# look up segment details in the ml2_network_segments table
53-
segments = db.get_network_segments(context.session, network['id'],
54-
filter_dynamic=None)
55+
segments = segments_db.get_network_segments(context, network['id'],
56+
filter_dynamic=None)
5557

5658
for segment in segments:
5759
LOG.debug("F5 disconnected service check segment: %s" % segment)

f5lbaasdriver/v2/bigip/neutron_client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
# limitations under the License.
1616
#
1717

18-
from neutron.api.v2 import attributes
19-
from neutron.common import constants as neutron_const
2018
from neutron.extensions import portbindings
2119

20+
from neutron_lib import constants as neutron_const
21+
2222
from oslo_log import helpers as log_helpers
2323
from oslo_log import log as logging
2424

@@ -38,7 +38,7 @@ def create_port_on_subnet(self, context, subnet_id=None,
3838
port = None
3939

4040
if not mac_address:
41-
mac_address = attributes.ATTR_NOT_SPECIFIED
41+
mac_address = neutron_const.ATTR_NOT_SPECIFIED
4242

4343
if subnet_id:
4444
try:

f5lbaasdriver/v2/bigip/plugin_rpc.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,21 @@
1515
# limitations under the License.
1616
#
1717

18-
from oslo_log import helpers as log_helpers
19-
from oslo_log import log as logging
18+
from f5lbaasdriver.v2.bigip import constants_v2 as constants
2019

21-
from neutron.api.v2 import attributes
2220
from neutron.common import rpc as neutron_rpc
2321
from neutron.db import agents_db
2422
from neutron.extensions import portbindings
2523
from neutron.plugins.common import constants as plugin_constants
24+
2625
from neutron_lbaas.db.loadbalancer import models
2726
from neutron_lbaas.services.loadbalancer import constants as nlb_constant
27+
2828
from neutron_lib import constants as neutron_const
2929

30-
from f5lbaasdriver.v2.bigip import constants_v2 as constants
30+
from oslo_log import helpers as log_helpers
31+
from oslo_log import log as logging
32+
3133

3234
LOG = logging.getLogger(__name__)
3335

@@ -510,7 +512,7 @@ def create_port_on_subnet(self, context, subnet_id=None,
510512
subnet_id
511513
)
512514
if not mac_address:
513-
mac_address = attributes.ATTR_NOT_SPECIFIED
515+
mac_address = neutron_const.ATTR_NOT_SPECIFIED
514516
fixed_ip = {'subnet_id': subnet['id']}
515517
if fixed_address_count > 1:
516518
fixed_ips = []
@@ -678,7 +680,7 @@ def create_port_on_network(self, context, network_id=None,
678680
)
679681

680682
if not mac_address:
681-
mac_address = attributes.ATTR_NOT_SPECIFIED
683+
mac_address = neutron_const.ATTR_NOT_SPECIFIED
682684
if not host:
683685
host = ''
684686
if not name:
@@ -692,7 +694,7 @@ def create_port_on_network(self, context, network_id=None,
692694
'admin_state_up': True,
693695
'device_owner': 'network:f5lbaasv2',
694696
'status': neutron_const.PORT_STATUS_ACTIVE,
695-
'fixed_ips': attributes.ATTR_NOT_SPECIFIED
697+
'fixed_ips': neutron_const.ATTR_NOT_SPECIFIED
696698
}
697699
if device_id:
698700
port_data['device_id'] = device_id

requirements.test.txt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
-e .
22

3-
git+https://github.com/openstack/neutron.git@newton-eol
4-
git+https://github.com/F5Networks/neutron-lbaas.git@stable/newton
3+
git+https://github.com/openstack/neutron.git@stable/ocata
4+
git+https://github.com/F5Networks/neutron-lbaas.git@stable/ocata
55
git+https://github.com/F5Networks/pytest-symbols.git
66
git+https://github.com/F5Networks/f5-openstack-test.git@stable/newton
77

@@ -13,8 +13,7 @@ f5-sdk==2.3.3
1313
# URL. If you add a version here it will be ignored, and therefore be
1414
# misleading to readers of this file.
1515
#
16-
# NOTE: As of OCT-26-2017, upper-constraints is still at stable/newton, not newton-eol.
17-
-c https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=stable/newton
16+
-c https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=stable/ocata
1817

1918
mock==IGNORED # See section comment
2019
pytest==IGNORED # See section comment

0 commit comments

Comments
 (0)