Skip to content

Commit 22fd452

Browse files
Jenkinsopenstack-gerrit
authored andcommitted
Merge "Reordering of optional and required args in lbaas commands help"
2 parents c5bb246 + 68ad8f8 commit 22fd452

2 files changed

Lines changed: 17 additions & 17 deletions

File tree

quantumclient/quantum/v2_0/lb/healthmonitor.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,6 @@ def add_known_arguments(self, parser):
5151
'--admin-state-down',
5252
default=True, action='store_false',
5353
help='set admin state up to false')
54-
parser.add_argument(
55-
'--delay',
56-
required=True,
57-
help='the minimum time in seconds between regular connections '
58-
'of the member.')
5954
parser.add_argument(
6055
'--expected-codes',
6156
help='the list of HTTP status codes expected in '
@@ -68,6 +63,16 @@ def add_known_arguments(self, parser):
6863
'--http-method',
6964
help='the HTTP method used for requests by the monitor of type '
7065
'HTTP.')
66+
parser.add_argument(
67+
'--url-path',
68+
help='the HTTP path used in the HTTP request used by the monitor'
69+
' to test a member health. This must be a string '
70+
'beginning with a / (forward slash)')
71+
parser.add_argument(
72+
'--delay',
73+
required=True,
74+
help='the minimum time in seconds between regular connections '
75+
'of the member.')
7176
parser.add_argument(
7277
'--max-retries',
7378
required=True,
@@ -83,11 +88,6 @@ def add_known_arguments(self, parser):
8388
'--type',
8489
required=True,
8590
help='one of predefined health monitor types, e.g. RoundRobin')
86-
parser.add_argument(
87-
'--url-path',
88-
help='the HTTP path used in the HTTP request used by the monitor'
89-
' to test a member health. This must be a string '
90-
'beginning with a / (forward slash)')
9191

9292
def args2body(self, parsed_args):
9393
body = {

quantumclient/quantum/v2_0/lb/member.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,22 +52,22 @@ def add_known_arguments(self, parser):
5252
parser.add_argument(
5353
'pool_id', metavar='pool',
5454
help='Pool id or name this vip belongs to')
55-
parser.add_argument(
56-
'--address',
57-
required=True,
58-
help='IP address of the pool member on the pool network. ')
5955
parser.add_argument(
6056
'--admin-state-down',
6157
default=True, action='store_false',
6258
help='set admin state up to false')
59+
parser.add_argument(
60+
'--weight',
61+
help='weight of pool member in the pool')
62+
parser.add_argument(
63+
'--address',
64+
required=True,
65+
help='IP address of the pool member on the pool network. ')
6366
parser.add_argument(
6467
'--protocol-port',
6568
required=True,
6669
help='port on which the pool member listens for requests or '
6770
'connections. ')
68-
parser.add_argument(
69-
'--weight',
70-
help='weight of pool member in the pool')
7171

7272
def args2body(self, parsed_args):
7373
_pool_id = quantumv20.find_resourceid_by_name_or_id(

0 commit comments

Comments
 (0)