54
54
id:
55
55
description:
56
56
- The key's ID.
57
+ - The value must be between 1 and 65535.
57
58
type: int
58
59
aliases: [ key_id ]
59
60
key:
60
61
description:
61
62
- The key.
63
+ - Up to 40 alphanumerical characters.
62
64
type: str
63
- authentification_type :
65
+ authentication_type :
64
66
description:
65
- - the type of authentification.
67
+ - the type of authentication.
68
+ - The default value is O(ntp_keys.authentication_type=md5).
66
69
type: str
67
70
choices: [ md5, sha1 ]
68
71
trusted:
69
72
description:
70
- - Set the NTP client authentification key to trusted.
73
+ - Set the NTP client authentication key to trusted.
71
74
type: bool
72
75
ntp_providers:
73
76
description:
84
87
minimum_poll_interval:
85
88
description:
86
89
- The Minimum Polling interval value.
90
+ - The default value is O(ntp_providers.minimum_poll_interval=4).
91
+ - The value must be between 4 and 16.
87
92
type: int
88
93
aliases: [ min_poll ]
89
94
maximum_poll_interval:
90
95
description:
91
96
- The Maximum Polling interval value.
97
+ - The default value is O(ntp_providers.maximum_poll_interval=6).
98
+ - The value must be between 4 and 16.
92
99
type: int
93
100
aliases: [ max_poll ]
94
101
management_epg_type:
106
113
description:
107
114
- Set the NTP provider to preferred.
108
115
type: bool
109
- authentification_key_id :
116
+ authentication_key_id :
110
117
description:
111
- - The NTP authentification key ID.
118
+ - The NTP authentication key ID.
119
+ - The value must be between 1 and 65535.
112
120
type: int
113
121
aliases: [ key_id ]
114
122
admin_state:
115
123
description:
116
124
- Enable admin state.
125
+ - The default value is O(admin_state=enabled).
117
126
type: str
118
127
choices: [ enabled, disabled ]
119
128
server_state:
120
129
description:
121
130
- Enable server state.
131
+ - The default value is O(server_state=disabled).
122
132
type: str
123
133
choices: [ enabled, disabled ]
124
134
master_mode:
125
135
description:
126
136
- Enable master mode.
137
+ - The default value is O(master_mode=disabled).
127
138
type: str
128
139
choices: [ enabled, disabled ]
129
140
stratum:
130
141
description:
131
142
- The numerical value of the stratum.
143
+ - The default value is O(stratum=4).
144
+ - The value must be between 1 and 14.
132
145
type: int
133
- authentification_state :
146
+ authentication_state :
134
147
description:
135
- - Enable authentification state.
148
+ - Enable authentication state.
149
+ - The default value is O(authentication_state=disabled).
136
150
type: str
137
151
choices: [ enabled, disabled ]
138
152
state:
162
176
ntp_keys:
163
177
- id: 1
164
178
key: my_key
165
- authentification_type : md5
179
+ authentication_type : md5
166
180
trusted: true
167
181
ntp_providers:
168
182
- host: background
171
185
management_epg_type: oob
172
186
management_epg: default
173
187
preferred: true
174
- authentification_key_id : 1
188
+ authentication_key_id : 1
175
189
admin_state: enabled
176
190
server_state: enabled
177
191
master_mode: enabled
178
192
stratum: 4
179
- authentification_state : enabled
193
+ authentication_state : enabled
180
194
state: present
181
195
register: ntp_policy_1
182
196
@@ -261,7 +275,7 @@ def main():
261
275
options = dict (
262
276
id = dict (type = "int" , aliases = ["key_id" ]),
263
277
key = dict (type = "str" , no_log = True ),
264
- authentification_type = dict (type = "str" , choices = ["md5" , "sha1" ]),
278
+ authentication_type = dict (type = "str" , choices = ["md5" , "sha1" ]),
265
279
trusted = dict (type = "bool" ),
266
280
),
267
281
no_log = False ,
@@ -276,14 +290,14 @@ def main():
276
290
management_epg_type = dict (type = "str" , choices = ["inb" , "oob" ], aliases = ["epg_type" ]),
277
291
management_epg = dict (type = "str" , aliases = ["epg" ]),
278
292
preferred = dict (type = "bool" ),
279
- authentification_key_id = dict (type = "int" , aliases = ["key_id" ]),
293
+ authentication_key_id = dict (type = "int" , aliases = ["key_id" ]),
280
294
),
281
295
),
282
296
admin_state = dict (type = "str" , choices = ["enabled" , "disabled" ]),
283
297
server_state = dict (type = "str" , choices = ["enabled" , "disabled" ]),
284
298
master_mode = dict (type = "str" , choices = ["enabled" , "disabled" ]),
285
299
stratum = dict (type = "int" ),
286
- authentification_state = dict (type = "str" , choices = ["enabled" , "disabled" ]),
300
+ authentication_state = dict (type = "str" , choices = ["enabled" , "disabled" ]),
287
301
state = dict (type = "str" , default = "query" , choices = ["absent" , "query" , "present" ]),
288
302
)
289
303
@@ -308,7 +322,7 @@ def main():
308
322
{
309
323
"id" : item .get ("id" ),
310
324
"key" : item .get ("key" ),
311
- "authType" : item .get ("authentification_type " ),
325
+ "authType" : item .get ("authentication_type " ),
312
326
"trusted" : item .get ("trusted" ),
313
327
}
314
328
for item in ntp_keys
@@ -323,19 +337,19 @@ def main():
323
337
"mgmtEpgType" : item .get ("management_epg_type" ),
324
338
"mgmtEpgName" : item .get ("management_epg" ),
325
339
"preferred" : item .get ("preferred" ),
326
- "authKeyID" : item .get ("authentification_key_id " ),
340
+ "authKeyID" : item .get ("authentication_key_id " ),
327
341
}
328
342
for item in ntp_providers
329
343
]
330
344
admin_state = module .params .get ("admin_state" )
331
345
server_state = module .params .get ("server_state" )
332
346
master_mode = module .params .get ("master_mode" )
333
347
stratum = module .params .get ("stratum" )
334
- authentification_state = module .params .get ("authentification_state " )
348
+ authentication_state = module .params .get ("authentication_state " )
335
349
state = module .params .get ("state" )
336
350
337
- template_object = MSOTemplate (mso , "tenant " , template )
338
- template_object .validate_template ("tenantPolicy " )
351
+ template_object = MSOTemplate (mso , "fabric_policy " , template )
352
+ template_object .validate_template ("fabricPolicy " )
339
353
340
354
ntp_policies = template_object .template .get ("fabricPolicyTemplate" , {}).get ("template" , {}).get ("ntpPolicies" , [])
341
355
object_description = "NTP Policy"
@@ -365,7 +379,7 @@ def main():
365
379
serverState = server_state ,
366
380
masterMode = master_mode ,
367
381
stratum = stratum ,
368
- authState = authentification_state ,
382
+ authState = authentication_state ,
369
383
)
370
384
371
385
if mso .existing :
0 commit comments