[LB] Add support for setting monitor_address
Change-Id: I4897c6343813519859bd19fa162829fe2a6dc573 (cherry picked from commit 37a51ec6ad0e2e0dd681558055d4a4ea786dd03c)
This commit is contained in:
parent
79d7827d17
commit
0e102b1411
@ -51,6 +51,14 @@ options:
|
|||||||
into ACTIVE state.
|
into ACTIVE state.
|
||||||
default: 180
|
default: 180
|
||||||
type: int
|
type: int
|
||||||
|
monitor_address:
|
||||||
|
description:
|
||||||
|
- IP address used to monitor this member
|
||||||
|
type: str
|
||||||
|
monitor_port:
|
||||||
|
description:
|
||||||
|
- Port used to monitor this member
|
||||||
|
type: int
|
||||||
requirements:
|
requirements:
|
||||||
- "python >= 3.6"
|
- "python >= 3.6"
|
||||||
- "openstacksdk"
|
- "openstacksdk"
|
||||||
@ -141,6 +149,8 @@ class LoadbalancerMemberModule(OpenStackModule):
|
|||||||
address=dict(default=None),
|
address=dict(default=None),
|
||||||
protocol_port=dict(default=80, type='int'),
|
protocol_port=dict(default=80, type='int'),
|
||||||
subnet_id=dict(default=None),
|
subnet_id=dict(default=None),
|
||||||
|
monitor_address=dict(default=None),
|
||||||
|
monitor_port=dict(default=None, type='int')
|
||||||
)
|
)
|
||||||
module_kwargs = dict()
|
module_kwargs = dict()
|
||||||
|
|
||||||
@ -191,7 +201,9 @@ class LoadbalancerMemberModule(OpenStackModule):
|
|||||||
address=self.params['address'],
|
address=self.params['address'],
|
||||||
name=name,
|
name=name,
|
||||||
protocol_port=self.params['protocol_port'],
|
protocol_port=self.params['protocol_port'],
|
||||||
subnet_id=self.params['subnet_id']
|
subnet_id=self.params['subnet_id'],
|
||||||
|
monitor_address=self.params['monitor_address'],
|
||||||
|
monitor_port=self.params['monitor_port']
|
||||||
)
|
)
|
||||||
changed = True
|
changed = True
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user