From 01c19ef0bc6abc0dbbd76666bdc0c5dda7ba0196 Mon Sep 17 00:00:00 2001 From: Tang Chen Date: Thu, 4 Feb 2016 13:19:01 +0800 Subject: Router: Add --route and --clear-routes options to "router set" command --route option is used to set routes to the router. It is used like this: --route destination=subnet,gateway=ip-address destination: destination subnet CIDR gateway: nexthop IP address --clear-routes is used to clear all routes on the router. Change-Id: I97ce4871113c684b29c98cdad4dec9cc80ed20f7 Implements: blueprint neutron-client Partial-bug: #1519503 --- doc/source/command-objects/router.rst | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'doc/source/command-objects') diff --git a/doc/source/command-objects/router.rst b/doc/source/command-objects/router.rst index 2a5bf053..6b8b357b 100644 --- a/doc/source/command-objects/router.rst +++ b/doc/source/command-objects/router.rst @@ -93,6 +93,7 @@ Set router properties [--name ] [--enable | --disable] [--distributed | --centralized] + [--route destination=,gateway= | --clear-routes] .. option:: --name @@ -115,6 +116,17 @@ Set router properties Set router to centralized mode (disabled router only) +.. option:: --route destination=,gateway= + + Routes associated with the router. + Repeat this option to set multiple routes. + destination: destination subnet (in CIDR notation). + gateway: nexthop IP address. + +.. option:: --clear-routes + + Clear routes associated with the router + .. _router_set-router: .. describe:: -- cgit v1.2.1