15
15
module: aci_l4l7_device
16
16
short_description: Manage L4-L7 Devices (vns:LDevVip)
17
17
description:
18
- - Manage Layer 4- 7 (L4-L7) Devices.
18
+ - Manage Layer 4 to Layer 7 (L4-L7) Devices.
19
19
options:
20
20
tenant:
21
21
description:
33
33
- The APIC defaults to C(single) when unset during creation.
34
34
type: str
35
35
choices: [ multi, single ]
36
- dev_type :
36
+ device_type :
37
37
description:
38
38
- The type of the device.
39
39
- The APIC defaults to C(physical) when unset during creation.
40
40
type: str
41
41
choices: [ physical, virtual ]
42
- aliases: [ device_type ]
43
- func_type :
42
+ aliases: [ dev_type ]
43
+ function_type :
44
44
description:
45
45
- The function type of the device.
46
46
- The APIC defaults to C(go_to) when unset during creation.
47
47
type: str
48
48
choices: [ go_to, go_through, l1, l2 ]
49
- aliases: [ function_type ]
49
+ aliases: [ func_type ]
50
50
managed:
51
51
description:
52
52
- Is the device a managed device.
53
53
- The APIC defaults to C(true) when unset during creation.
54
54
type: bool
55
- prom_mode :
55
+ promiscuous_mode :
56
56
description:
57
57
- Enable promiscuous mode.
58
58
- The APIC defaults to C(false) when unset during creation.
59
59
type: bool
60
- aliases: [ promiscuous_mode ]
61
- svc_type :
60
+ aliases: [ prom_mode ]
61
+ service_type :
62
62
description:
63
63
- The service type running on the device.
64
64
- The APIC defaults to C(others) when unset during creation.
65
65
type: str
66
66
choices: [ adc, fw, others ]
67
- aliases: [ service_type ]
67
+ aliases: [ svc_type ]
68
68
trunking:
69
69
description:
70
70
- Enable trunking.
73
73
domain:
74
74
description:
75
75
- The domain to bind to the device.
76
- - The type of domain is controlled by the dev_type setting.
76
+ - The type of domain is controlled by the device_type setting.
77
77
type: str
78
78
state:
79
79
description:
107
107
name: my_device
108
108
state: present
109
109
domain: phys
110
- func_type : go_to
110
+ function_type : go_to
111
111
context_aware: single
112
112
managed: false
113
- dev_type : physical
114
- svc_type : adc
113
+ device_type : physical
114
+ service_type : adc
115
115
trunking: false
116
- prom_mode : true
116
+ promiscuous_mode : true
117
117
delegate_to: localhost
118
118
119
119
- name: Query an L4-L7 device
@@ -266,11 +266,11 @@ def main():
266
266
name = dict (type = "str" , aliases = ["device" , "device_name" , "logical_device_name" ]),
267
267
state = dict (type = "str" , default = "present" , choices = ["absent" , "present" , "query" ]),
268
268
context_aware = dict (type = "str" , choices = ["single" , "multi" ]),
269
- dev_type = dict (type = "str" , aliases = ["device_type " ], choices = ["physical" , "virtual" ]),
270
- func_type = dict (type = "str" , aliases = ["function_type " ], choices = list (L4L7_FUNC_TYPES_MAPPING )),
269
+ device_type = dict (type = "str" , aliases = ["dev_type " ], choices = ["physical" , "virtual" ]),
270
+ function_type = dict (type = "str" , aliases = ["func_type " ], choices = list (L4L7_FUNC_TYPES_MAPPING )),
271
271
managed = dict (type = "bool" ),
272
- prom_mode = dict (type = "bool" , aliases = ["promiscuous_mode " ]),
273
- svc_type = dict (type = "str" , aliases = ["service_type " ], choices = ["adc" , "fw" , "others" ]),
272
+ promiscuous_mode = dict (type = "bool" , aliases = ["prom_mode " ]),
273
+ service_type = dict (type = "str" , aliases = ["svc_type " ], choices = ["adc" , "fw" , "others" ]),
274
274
trunking = dict (type = "bool" ),
275
275
domain = dict (type = "str" ),
276
276
)
@@ -290,11 +290,11 @@ def main():
290
290
state = module .params .get ("state" )
291
291
name = module .params .get ("name" )
292
292
context_aware = module .params .get ("context_aware" )
293
- dev_type = module .params .get ("dev_type " )
294
- func_type = L4L7_FUNC_TYPES_MAPPING .get (module .params .get ("func_type " ))
293
+ device_type = module .params .get ("device_type " )
294
+ function_type = L4L7_FUNC_TYPES_MAPPING .get (module .params .get ("function_type " ))
295
295
managed = aci .boolean (module .params .get ("managed" ))
296
- prom_mode = aci .boolean (module .params .get ("prom_mode " ))
297
- svc_type = module .params .get ("svc_type " )
296
+ promiscuous_mode = aci .boolean (module .params .get ("promiscuous_mode " ))
297
+ service_type = module .params .get ("service_type " )
298
298
trunking = aci .boolean (module .params .get ("trunking" ))
299
299
domain = module .params .get ("domain" )
300
300
@@ -318,7 +318,7 @@ def main():
318
318
319
319
if state == "present" :
320
320
child_configs = []
321
- if dev_type == "virtual" :
321
+ if device_type == "virtual" :
322
322
dom_class = "vnsRsALDevToDomP"
323
323
tdn = "uni/vmmp-VMware/dom-{0}" .format (domain )
324
324
else :
@@ -331,11 +331,11 @@ def main():
331
331
class_config = dict (
332
332
name = name ,
333
333
contextAware = "{0}-Context" .format (context_aware ),
334
- devtype = dev_type .upper (),
335
- funcType = func_type ,
334
+ devtype = device_type .upper (),
335
+ funcType = function_type ,
336
336
managed = managed ,
337
- promMode = prom_mode ,
338
- svcType = svc_type .upper (),
337
+ promMode = promiscuous_mode ,
338
+ svcType = service_type .upper (),
339
339
trunking = trunking ,
340
340
),
341
341
child_configs = child_configs ,
0 commit comments