Commit Graph

6 Commits

Author SHA1 Message Date
Monty Taylor 60aafcc4bc Allow explicitly setting enable_snat to either value
The original code did not allow someone to set enable_snat to True.
Turns out on some clouds the default is the opposite.

Change-Id: Ic3bbfa35f7c6184faa60922b4dd796708de57136
2018-05-22 15:43:22 +02:00
Trygve Vea c9bfc45844 Implement availability_zone_hints for networks and routers.
Adds an optional parameter to the create_network and
create_router-methods, for use with availability zone-scheduling of
network agents.

Change-Id: Ifb93a10415dc676f5cc56b5315f2dff24fc395b8
2017-11-27 16:09:41 +01:00
Jens Harbott e4fb686627 Fix regression for list_router_interfaces
A filter for router ports was introduced in [1] that only works when
Neutron DVR and HA are disabled. We need different filter values in the
DVR or HA case.

[1] I7fb5add36af09cc22084c8c034bf9f3cd0fbb442

Change-Id: I0253ecc6411426e554c08010186c72394a318268
Story: 2001265
Task: 5799
2017-11-02 10:08:19 +00:00
Lee Yarwood a4fdee5731 router: Ignore L3 HA ports when listing interfaces
L3 HA ports do not correspond to a router interface and should be
ignored when listing these interfaces.

Change-Id: I7fb5add36af09cc22084c8c034bf9f3cd0fbb442
2017-07-26 12:43:58 +01:00
Sławek Kapłoński a71bea882d Remove neutronclient mocks from router tests
Neutronclient mock is replaced by mocking REST calls using
base.RequestsMockTestCase class

Change-Id: I54769c34fef4f64150461fef47881bd400313335
2017-04-25 21:39:41 +00:00
Sławek Kapłoński 1c0c81fe09 Move router related tests to separate module
All router tests were in common test_shade.py file.
Now all those tests are in separate test module,
like it is done for network related tests.

Change-Id: I9eee8c676280ea08b8e2c5fb70c1b63f746f4819
2017-04-24 13:32:32 +00:00