summaryrefslogtreecommitdiff
path: root/neutronclient/neutron/v2_0/router.py
diff options
context:
space:
mode:
Diffstat (limited to 'neutronclient/neutron/v2_0/router.py')
-rw-r--r--neutronclient/neutron/v2_0/router.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/neutronclient/neutron/v2_0/router.py b/neutronclient/neutron/v2_0/router.py
index 758e3a0..5d03877 100644
--- a/neutronclient/neutron/v2_0/router.py
+++ b/neutronclient/neutron/v2_0/router.py
@@ -66,13 +66,16 @@ class CreateRouter(neutronV20.CreateCommand):
'name', metavar='NAME',
help=_('Name of router to create.'))
parser.add_argument(
- 'distributed', action='store_true',
+ '--distributed',
+ dest='distributed',
+ choices=['True', 'False'],
+ default=argparse.SUPPRESS,
help=_('Create a distributed router.'))
def args2body(self, parsed_args):
body = {self.resource: {'admin_state_up': parsed_args.admin_state}}
neutronV20.update_dict(parsed_args, body[self.resource],
- ['name', 'tenant_id'])
+ ['name', 'tenant_id', 'distributed'])
return body