From 9b6dada8e371d9e77db129b15acb03a35115591a Mon Sep 17 00:00:00 2001
From: Ramaraja Ramachandran <ramaraja.r@hcl.com>
Date: Tue, 21 Apr 2015 16:40:40 +0530
Subject: [PATCH] Security group rule create fails

By default the --dst-port value is set to None when no --dst-port
argument is provided. By making the default value (0, 0), this allows
novaclient to proceed without any error.

Change-Id: Ibb58f5df5ed1890a8f499dd2467b12b0e79d547b
Closes-Bug: #1443963
---
 openstackclient/compute/v2/security_group.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/openstackclient/compute/v2/security_group.py b/openstackclient/compute/v2/security_group.py
index d4643438ff..d94973015d 100644
--- a/openstackclient/compute/v2/security_group.py
+++ b/openstackclient/compute/v2/security_group.py
@@ -290,6 +290,7 @@ class CreateSecurityGroupRule(show.ShowOne):
         parser.add_argument(
             "--dst-port",
             metavar="<port-range>",
+            default=(0, 0),
             action=parseractions.RangeAction,
             help="Destination port, may be a range: 137:139 (default: 0; "
                  "only required for proto tcp and udp)",