Merge "Add router add/remove extra routes operations"

This commit is contained in:
Zuul 2019-09-13 12:34:03 +00:00 committed by Gerrit Code Review
commit 115f60f005
2 changed files with 15 additions and 0 deletions

View File

@ -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),

View File

@ -0,0 +1,5 @@
---
features:
- |
New client methods: ``add_extra_routes_to_router`` and
``remove_extra_routes_from_router``.