diff options
| author | Choe, Cheng-Dae <whitekid@gmail.com> | 2016-10-08 02:50:25 +0900 |
|---|---|---|
| committer | Choe, Cheng-Dae <whitekid@gmail.com> | 2016-10-10 23:57:22 +0900 |
| commit | 2bbb482106d9ec97537d4604096a3fca1ddae2d4 (patch) | |
| tree | 6b94a8c1a3b1220c717af797589d9ae83dc96ac4 /openstackclient/tests | |
| parent | 762f2f2c34814b8bfc615696918d8cb49b93a1dd (diff) | |
| download | python-openstackclient-2bbb482106d9ec97537d4604096a3fca1ddae2d4.tar.gz | |
Fix router unset --route option
Fix the "--route" option one the "os route unset" command. The option
did not convert gateway to nexthop which results "Router does not contain
route" error.
Change-Id: Ia57bc7ea77ad7c6030535180a6ce42b4928c9e56
Closes-Bug: 1631471
Diffstat (limited to 'openstackclient/tests')
| -rw-r--r-- | openstackclient/tests/unit/network/v2/test_router.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openstackclient/tests/unit/network/v2/test_router.py b/openstackclient/tests/unit/network/v2/test_router.py index 6a445862..d85561bc 100644 --- a/openstackclient/tests/unit/network/v2/test_router.py +++ b/openstackclient/tests/unit/network/v2/test_router.py @@ -773,9 +773,9 @@ class TestUnsetRouter(TestRouter): super(TestUnsetRouter, self).setUp() self._testrouter = network_fakes.FakeRouter.create_one_router( {'routes': [{"destination": "192.168.101.1/24", - "gateway": "172.24.4.3"}, + "nexthop": "172.24.4.3"}, {"destination": "192.168.101.2/24", - "gateway": "172.24.4.3"}], }) + "nexthop": "172.24.4.3"}], }) self.fake_subnet = network_fakes.FakeSubnet.create_one_subnet() self.network.find_router = mock.Mock(return_value=self._testrouter) self.network.update_router = mock.Mock(return_value=None) |
