summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2019-09-13 12:34:03 +0000
committerGerrit Code Review <review@openstack.org>2019-09-13 12:34:03 +0000
commit115f60f0056899d536d5dd3e6491cd0f999cfd90 (patch)
treef349a28f36f3401c4da830847da32d72b983aa03
parente35b3c160b5314ff573e913f3236cc98ccf500bc (diff)
parent1c634ed2c16195e5a2e67400902f01450df30d98 (diff)
downloadpython-neutronclient-115f60f0056899d536d5dd3e6491cd0f999cfd90.tar.gz
Merge "Add router add/remove extra routes operations"6.14.0
-rw-r--r--neutronclient/v2_0/client.py10
-rw-r--r--releasenotes/notes/extraroute-atomic-b11919d8e33b0d92.yaml5
2 files changed, 15 insertions, 0 deletions
diff --git a/neutronclient/v2_0/client.py b/neutronclient/v2_0/client.py
index ed8dbd4..c338c31 100644
--- a/neutronclient/v2_0/client.py
+++ b/neutronclient/v2_0/client.py
@@ -934,6 +934,16 @@ class Client(ClientBase):
return self.put((self.router_path % router) +
"/remove_router_interface", body=body)
+ def add_extra_routes_to_router(self, router, body=None):
+ """Adds extra routes to the specified router."""
+ return self.put((self.router_path % router) + "/add_extraroutes",
+ body=body)
+
+ def remove_extra_routes_from_router(self, router, body=None):
+ """Removes extra routes from the specified router."""
+ return self.put((self.router_path % router) + "/remove_extraroutes",
+ body=body)
+
def add_gateway_router(self, router, body=None):
"""Adds an external network gateway to the specified router."""
return self.put((self.router_path % router),
diff --git a/releasenotes/notes/extraroute-atomic-b11919d8e33b0d92.yaml b/releasenotes/notes/extraroute-atomic-b11919d8e33b0d92.yaml
new file mode 100644
index 0000000..fed4a1e
--- /dev/null
+++ b/releasenotes/notes/extraroute-atomic-b11919d8e33b0d92.yaml
@@ -0,0 +1,5 @@
+---
+features:
+ - |
+ New client methods: ``add_extra_routes_to_router`` and
+ ``remove_extra_routes_from_router``.