| 1 |
|
| 2 |
from __future__ import absolute_import, division, print_function |
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
__metaclass__ = type |
| 7 |
|
| 8 |
ANSIBLE_METADATA = {'status': ['preview'], |
| 9 |
'supported_by': 'community', |
| 10 |
'metadata_version': '1.1'} |
| 11 |
|
| 12 |
DOCUMENTATION = ''' |
| 13 |
--- |
| 14 |
module: fmgr_extensioncontroller_extenderprofile |
| 15 |
short_description: FortiExtender extender profile configuration. |
| 16 |
version_added: "2.2.0" |
| 17 |
extends_documentation_fragment: |
| 18 |
- fortinet.fortimanager.general |
| 19 |
- fortinet.fortimanager.general.full_crud |
| 20 |
options: |
| 21 |
revision_note: |
| 22 |
description: The change note that can be specified when an object is created or updated. |
| 23 |
type: str |
| 24 |
adom: |
| 25 |
description: The parameter (adom) in requested url. |
| 26 |
type: str |
| 27 |
required: true |
| 28 |
extensioncontroller_extenderprofile: |
| 29 |
description: The top level parameters set. |
| 30 |
required: false |
| 31 |
type: dict |
| 32 |
suboptions: |
| 33 |
allowaccess: |
| 34 |
type: list |
| 35 |
elements: str |
| 36 |
description: Control management access to the managed extender. |
| 37 |
choices: ['https', 'ping', 'ssh', 'snmp', 'http', 'telnet'] |
| 38 |
bandwidth_limit: |
| 39 |
aliases: ['bandwidth-limit'] |
| 40 |
type: int |
| 41 |
description: FortiExtender LAN extension bandwidth limit |
| 42 |
cellular: |
| 43 |
type: dict |
| 44 |
description: Cellular. |
| 45 |
suboptions: |
| 46 |
controller_report: |
| 47 |
aliases: ['controller-report'] |
| 48 |
type: dict |
| 49 |
description: Controller report. |
| 50 |
suboptions: |
| 51 |
interval: |
| 52 |
type: int |
| 53 |
description: Controller report interval. |
| 54 |
signal_threshold: |
| 55 |
aliases: ['signal-threshold'] |
| 56 |
type: int |
| 57 |
description: Controller report signal threshold. |
| 58 |
status: |
| 59 |
type: str |
| 60 |
description: FortiExtender controller report status. |
| 61 |
choices: ['disable', 'enable'] |
| 62 |
dataplan: |
| 63 |
type: raw |
| 64 |
description: (list) Dataplan names. |
| 65 |
modem1: |
| 66 |
type: dict |
| 67 |
description: Modem1. |
| 68 |
suboptions: |
| 69 |
auto_switch: |
| 70 |
aliases: ['auto-switch'] |
| 71 |
type: dict |
| 72 |
description: Auto switch. |
| 73 |
suboptions: |
| 74 |
dataplan: |
| 75 |
type: str |
| 76 |
description: Automatically switch based on data usage. |
| 77 |
choices: ['disable', 'enable'] |
| 78 |
disconnect: |
| 79 |
type: str |
| 80 |
description: Auto switch by disconnect. |
| 81 |
choices: ['disable', 'enable'] |
| 82 |
disconnect_period: |
| 83 |
aliases: ['disconnect-period'] |
| 84 |
type: int |
| 85 |
description: Automatically switch based on disconnect period. |
| 86 |
disconnect_threshold: |
| 87 |
aliases: ['disconnect-threshold'] |
| 88 |
type: int |
| 89 |
description: Automatically switch based on disconnect threshold. |
| 90 |
signal: |
| 91 |
type: str |
| 92 |
description: Automatically switch based on signal strength. |
| 93 |
choices: ['disable', 'enable'] |
| 94 |
switch_back: |
| 95 |
aliases: ['switch-back'] |
| 96 |
type: list |
| 97 |
elements: str |
| 98 |
description: Auto switch with switch back multi-options. |
| 99 |
choices: ['time', 'timer'] |
| 100 |
switch_back_time: |
| 101 |
aliases: ['switch-back-time'] |
| 102 |
type: str |
| 103 |
description: Automatically switch over to preferred SIM/carrier at a specified time in UTC |
| 104 |
switch_back_timer: |
| 105 |
aliases: ['switch-back-timer'] |
| 106 |
type: int |
| 107 |
description: Automatically switch over to preferred SIM/carrier after the given time |
| 108 |
conn_status: |
| 109 |
aliases: ['conn-status'] |
| 110 |
type: int |
| 111 |
description: Conn status. |
| 112 |
default_sim: |
| 113 |
aliases: ['default-sim'] |
| 114 |
type: str |
| 115 |
description: Default SIM selection. |
| 116 |
choices: ['sim1', 'sim2', 'carrier', 'cost'] |
| 117 |
gps: |
| 118 |
type: str |
| 119 |
description: FortiExtender GPS enable/disable. |
| 120 |
choices: ['disable', 'enable'] |
| 121 |
modem_id: |
| 122 |
aliases: ['modem-id'] |
| 123 |
type: int |
| 124 |
description: Modem ID. |
| 125 |
preferred_carrier: |
| 126 |
aliases: ['preferred-carrier'] |
| 127 |
type: str |
| 128 |
description: Preferred carrier. |
| 129 |
redundant_intf: |
| 130 |
aliases: ['redundant-intf'] |
| 131 |
type: str |
| 132 |
description: Redundant interface. |
| 133 |
redundant_mode: |
| 134 |
aliases: ['redundant-mode'] |
| 135 |
type: str |
| 136 |
description: FortiExtender mode. |
| 137 |
choices: ['disable', 'enable'] |
| 138 |
sim1_pin: |
| 139 |
aliases: ['sim1-pin'] |
| 140 |
type: str |
| 141 |
description: SIM #1 PIN status. |
| 142 |
choices: ['disable', 'enable'] |
| 143 |
sim1_pin_code: |
| 144 |
aliases: ['sim1-pin-code'] |
| 145 |
type: raw |
| 146 |
description: (list) SIM #1 PIN password. |
| 147 |
sim2_pin: |
| 148 |
aliases: ['sim2-pin'] |
| 149 |
type: str |
| 150 |
description: SIM #2 PIN status. |
| 151 |
choices: ['disable', 'enable'] |
| 152 |
sim2_pin_code: |
| 153 |
aliases: ['sim2-pin-code'] |
| 154 |
type: raw |
| 155 |
description: (list) SIM #2 PIN password. |
| 156 |
multiple_PDN: |
| 157 |
aliases: ['multiple-PDN'] |
| 158 |
type: str |
| 159 |
description: Multiple-PDN enable/disable. |
| 160 |
choices: ['disable', 'enable'] |
| 161 |
pdn1_dataplan: |
| 162 |
aliases: ['pdn1-dataplan'] |
| 163 |
type: raw |
| 164 |
description: (list) PDN1-dataplan. |
| 165 |
pdn2_dataplan: |
| 166 |
aliases: ['pdn2-dataplan'] |
| 167 |
type: raw |
| 168 |
description: (list) PDN2-dataplan. |
| 169 |
pdn3_dataplan: |
| 170 |
aliases: ['pdn3-dataplan'] |
| 171 |
type: raw |
| 172 |
description: (list) PDN3-dataplan. |
| 173 |
pdn4_dataplan: |
| 174 |
aliases: ['pdn4-dataplan'] |
| 175 |
type: raw |
| 176 |
description: (list) PDN4-dataplan. |
| 177 |
modem2: |
| 178 |
type: dict |
| 179 |
description: Modem2. |
| 180 |
suboptions: |
| 181 |
auto_switch: |
| 182 |
aliases: ['auto-switch'] |
| 183 |
type: dict |
| 184 |
description: Auto switch. |
| 185 |
suboptions: |
| 186 |
dataplan: |
| 187 |
type: str |
| 188 |
description: Automatically switch based on data usage. |
| 189 |
choices: ['disable', 'enable'] |
| 190 |
disconnect: |
| 191 |
type: str |
| 192 |
description: Auto switch by disconnect. |
| 193 |
choices: ['disable', 'enable'] |
| 194 |
disconnect_period: |
| 195 |
aliases: ['disconnect-period'] |
| 196 |
type: int |
| 197 |
description: Automatically switch based on disconnect period. |
| 198 |
disconnect_threshold: |
| 199 |
aliases: ['disconnect-threshold'] |
| 200 |
type: int |
| 201 |
description: Automatically switch based on disconnect threshold. |
| 202 |
signal: |
| 203 |
type: str |
| 204 |
description: Automatically switch based on signal strength. |
| 205 |
choices: ['disable', 'enable'] |
| 206 |
switch_back: |
| 207 |
aliases: ['switch-back'] |
| 208 |
type: list |
| 209 |
elements: str |
| 210 |
description: Auto switch with switch back multi-options. |
| 211 |
choices: ['time', 'timer'] |
| 212 |
switch_back_time: |
| 213 |
aliases: ['switch-back-time'] |
| 214 |
type: str |
| 215 |
description: Automatically switch over to preferred SIM/carrier at a specified time in UTC |
| 216 |
switch_back_timer: |
| 217 |
aliases: ['switch-back-timer'] |
| 218 |
type: int |
| 219 |
description: Automatically switch over to preferred SIM/carrier after the given time |
| 220 |
conn_status: |
| 221 |
aliases: ['conn-status'] |
| 222 |
type: int |
| 223 |
description: Conn status. |
| 224 |
default_sim: |
| 225 |
aliases: ['default-sim'] |
| 226 |
type: str |
| 227 |
description: Default SIM selection. |
| 228 |
choices: ['sim1', 'sim2', 'carrier', 'cost'] |
| 229 |
gps: |
| 230 |
type: str |
| 231 |
description: FortiExtender GPS enable/disable. |
| 232 |
choices: ['disable', 'enable'] |
| 233 |
modem_id: |
| 234 |
aliases: ['modem-id'] |
| 235 |
type: int |
| 236 |
description: Modem ID. |
| 237 |
preferred_carrier: |
| 238 |
aliases: ['preferred-carrier'] |
| 239 |
type: str |
| 240 |
description: Preferred carrier. |
| 241 |
redundant_intf: |
| 242 |
aliases: ['redundant-intf'] |
| 243 |
type: str |
| 244 |
description: Redundant interface. |
| 245 |
redundant_mode: |
| 246 |
aliases: ['redundant-mode'] |
| 247 |
type: str |
| 248 |
description: FortiExtender mode. |
| 249 |
choices: ['disable', 'enable'] |
| 250 |
sim1_pin: |
| 251 |
aliases: ['sim1-pin'] |
| 252 |
type: str |
| 253 |
description: SIM #1 PIN status. |
| 254 |
choices: ['disable', 'enable'] |
| 255 |
sim1_pin_code: |
| 256 |
aliases: ['sim1-pin-code'] |
| 257 |
type: raw |
| 258 |
description: (list) SIM #1 PIN password. |
| 259 |
sim2_pin: |
| 260 |
aliases: ['sim2-pin'] |
| 261 |
type: str |
| 262 |
description: SIM #2 PIN status. |
| 263 |
choices: ['disable', 'enable'] |
| 264 |
sim2_pin_code: |
| 265 |
aliases: ['sim2-pin-code'] |
| 266 |
type: raw |
| 267 |
description: (list) SIM #2 PIN password. |
| 268 |
multiple_PDN: |
| 269 |
aliases: ['multiple-PDN'] |
| 270 |
type: str |
| 271 |
description: Multiple-PDN enable/disable. |
| 272 |
choices: ['disable', 'enable'] |
| 273 |
pdn1_dataplan: |
| 274 |
aliases: ['pdn1-dataplan'] |
| 275 |
type: raw |
| 276 |
description: (list) PDN1-dataplan. |
| 277 |
pdn2_dataplan: |
| 278 |
aliases: ['pdn2-dataplan'] |
| 279 |
type: raw |
| 280 |
description: (list) PDN2-dataplan. |
| 281 |
pdn3_dataplan: |
| 282 |
aliases: ['pdn3-dataplan'] |
| 283 |
type: raw |
| 284 |
description: (list) PDN3-dataplan. |
| 285 |
pdn4_dataplan: |
| 286 |
aliases: ['pdn4-dataplan'] |
| 287 |
type: raw |
| 288 |
description: (list) PDN4-dataplan. |
| 289 |
sms_notification: |
| 290 |
aliases: ['sms-notification'] |
| 291 |
type: dict |
| 292 |
description: Sms notification. |
| 293 |
suboptions: |
| 294 |
alert: |
| 295 |
type: dict |
| 296 |
description: Alert. |
| 297 |
suboptions: |
| 298 |
data_exhausted: |
| 299 |
aliases: ['data-exhausted'] |
| 300 |
type: str |
| 301 |
description: Display string when data exhausted. |
| 302 |
fgt_backup_mode_switch: |
| 303 |
aliases: ['fgt-backup-mode-switch'] |
| 304 |
type: str |
| 305 |
description: Display string when FortiGate backup mode switched. |
| 306 |
low_signal_strength: |
| 307 |
aliases: ['low-signal-strength'] |
| 308 |
type: str |
| 309 |
description: Display string when signal strength is low. |
| 310 |
mode_switch: |
| 311 |
aliases: ['mode-switch'] |
| 312 |
type: str |
| 313 |
description: Display string when mode is switched. |
| 314 |
os_image_fallback: |
| 315 |
aliases: ['os-image-fallback'] |
| 316 |
type: str |
| 317 |
description: Display string when falling back to a previous OS image. |
| 318 |
session_disconnect: |
| 319 |
aliases: ['session-disconnect'] |
| 320 |
type: str |
| 321 |
description: Display string when session disconnected. |
| 322 |
system_reboot: |
| 323 |
aliases: ['system-reboot'] |
| 324 |
type: str |
| 325 |
description: Display string when system rebooted. |
| 326 |
receiver: |
| 327 |
type: list |
| 328 |
elements: dict |
| 329 |
description: Receiver. |
| 330 |
suboptions: |
| 331 |
alert: |
| 332 |
type: list |
| 333 |
elements: str |
| 334 |
description: Alert multi-options. |
| 335 |
choices: ['system-reboot', 'data-exhausted', |
| 336 |
'session-disconnect', 'low-signal-strength', |
| 337 |
'mode-switch', 'os-image-fallback', |
| 338 |
'fgt-backup-mode-switch'] |
| 339 |
name: |
| 340 |
type: str |
| 341 |
description: FortiExtender SMS notification receiver name. |
| 342 |
phone_number: |
| 343 |
aliases: ['phone-number'] |
| 344 |
type: str |
| 345 |
description: Receiver phone number. |
| 346 |
status: |
| 347 |
type: str |
| 348 |
description: SMS notification receiver status. |
| 349 |
choices: ['disable', 'enable'] |
| 350 |
status: |
| 351 |
type: str |
| 352 |
description: FortiExtender SMS notification status. |
| 353 |
choices: ['disable', 'enable'] |
| 354 |
enforce_bandwidth: |
| 355 |
aliases: ['enforce-bandwidth'] |
| 356 |
type: str |
| 357 |
description: Enable/disable enforcement of bandwidth on LAN extension interface. |
| 358 |
choices: ['disable', 'enable'] |
| 359 |
extension: |
| 360 |
type: str |
| 361 |
description: Extension option. |
| 362 |
choices: ['wan-extension', 'lan-extension'] |
| 363 |
id: |
| 364 |
type: int |
| 365 |
description: ID. |
| 366 |
required: true |
| 367 |
lan_extension: |
| 368 |
aliases: ['lan-extension'] |
| 369 |
type: dict |
| 370 |
description: Lan extension. |
| 371 |
suboptions: |
| 372 |
backhaul: |
| 373 |
type: list |
| 374 |
elements: dict |
| 375 |
description: Backhaul. |
| 376 |
suboptions: |
| 377 |
name: |
| 378 |
type: str |
| 379 |
description: FortiExtender LAN extension backhaul name. |
| 380 |
port: |
| 381 |
type: str |
| 382 |
description: FortiExtender uplink port. |
| 383 |
choices: ['wan', 'lte1', 'lte2', 'port1', 'port2', 'port3', |
| 384 |
'port4', 'port5', 'sfp'] |
| 385 |
role: |
| 386 |
type: str |
| 387 |
description: FortiExtender uplink port. |
| 388 |
choices: ['primary', 'secondary'] |
| 389 |
weight: |
| 390 |
type: int |
| 391 |
description: WRR weight parameter. |
| 392 |
health_check_fail_cnt: |
| 393 |
aliases: ['health-check-fail-cnt'] |
| 394 |
type: int |
| 395 |
description: Number of failures before the link is considered dead |
| 396 |
health_check_interval: |
| 397 |
aliases: ['health-check-interval'] |
| 398 |
type: int |
| 399 |
description: Health monitoring interval in seconds |
| 400 |
health_check_probe_cnt: |
| 401 |
aliases: ['health-check-probe-cnt'] |
| 402 |
type: int |
| 403 |
description: Number of health monitoring probes to send within an interval |
| 404 |
health_check_probe_tm: |
| 405 |
aliases: ['health-check-probe-tm'] |
| 406 |
type: int |
| 407 |
description: Health monitoring probe timeout in seconds |
| 408 |
health_check_recovery_cnt: |
| 409 |
aliases: ['health-check-recovery-cnt'] |
| 410 |
type: int |
| 411 |
description: Number of successful checks before the link is considered alive |
| 412 |
backhaul_interface: |
| 413 |
aliases: ['backhaul-interface'] |
| 414 |
type: str |
| 415 |
description: IPsec phase1 interface. |
| 416 |
backhaul_ip: |
| 417 |
aliases: ['backhaul-ip'] |
| 418 |
type: str |
| 419 |
description: IPsec phase1 IPv4/FQDN. |
| 420 |
ipsec_tunnel: |
| 421 |
aliases: ['ipsec-tunnel'] |
| 422 |
type: str |
| 423 |
description: IPsec tunnel name. |
| 424 |
link_loadbalance: |
| 425 |
aliases: ['link-loadbalance'] |
| 426 |
type: str |
| 427 |
description: LAN extension link load balance strategy. |
| 428 |
choices: ['activebackup', 'loadbalance'] |
| 429 |
downlinks: |
| 430 |
type: list |
| 431 |
elements: dict |
| 432 |
description: Downlinks. |
| 433 |
suboptions: |
| 434 |
name: |
| 435 |
type: str |
| 436 |
description: FortiExtender LAN extension downlink config entry name. |
| 437 |
port: |
| 438 |
type: str |
| 439 |
description: FortiExtender LAN extension downlink port. |
| 440 |
choices: ['port1', 'port2', 'port3', 'port4', 'port5', 'lan1', |
| 441 |
'lan2', 'lan'] |
| 442 |
pvid: |
| 443 |
type: int |
| 444 |
description: FortiExtender LAN extension downlink PVID. |
| 445 |
type: |
| 446 |
type: str |
| 447 |
description: FortiExtender LAN extension downlink type [port/vap]. |
| 448 |
choices: ['port', 'vap'] |
| 449 |
vap: |
| 450 |
type: raw |
| 451 |
description: (list) FortiExtender LAN extension downlink vap. |
| 452 |
vids: |
| 453 |
type: raw |
| 454 |
description: (list) FortiExtender LAN extension downlink VIDs. |
| 455 |
traffic_split_services: |
| 456 |
aliases: ['traffic-split-services'] |
| 457 |
type: list |
| 458 |
elements: dict |
| 459 |
description: Traffic split services. |
| 460 |
suboptions: |
| 461 |
address: |
| 462 |
type: raw |
| 463 |
description: (list) Address selection. |
| 464 |
name: |
| 465 |
type: str |
| 466 |
description: FortiExtender LAN extension tunnel split entry name. |
| 467 |
service: |
| 468 |
type: raw |
| 469 |
description: (list) Service selection. |
| 470 |
vsdb: |
| 471 |
type: str |
| 472 |
description: Select vsdb [enable/disable]. |
| 473 |
choices: ['disable', 'enable'] |
| 474 |
login_password: |
| 475 |
aliases: ['login-password'] |
| 476 |
type: raw |
| 477 |
description: (list) Set the managed extenders administrator password. |
| 478 |
login_password_change: |
| 479 |
aliases: ['login-password-change'] |
| 480 |
type: str |
| 481 |
description: Change or reset the administrator password of a managed extender |
| 482 |
choices: ['no', 'yes', 'default'] |
| 483 |
model: |
| 484 |
type: str |
| 485 |
description: Model. |
| 486 |
choices: ['FX201E', 'FX211E', 'FX200F', 'FXA11F', 'FXE11F', 'FXA21F', 'FXE21F', |
| 487 |
'FXA22F', 'FXE22F', 'FX212F', 'FX311F', 'FX312F', 'FX511F', 'FVG21F', |
| 488 |
'FVA21F', 'FVG22F', 'FVA22F', 'FX04DA', 'FX04DN', 'FX04DI', 'FXR51G', |
| 489 |
'FG', 'BS10FW', 'BS20GW', 'BS20GN', 'FXN51G', 'FXW51G', 'FVG51G', |
| 490 |
'FXE11G', 'FX211G'] |
| 491 |
name: |
| 492 |
type: str |
| 493 |
description: FortiExtender profile name. |
| 494 |
_is_factory_setting: |
| 495 |
type: str |
| 496 |
description: Is factory setting. |
| 497 |
choices: ['disable', 'enable', 'ext'] |
| 498 |
wifi: |
| 499 |
type: dict |
| 500 |
description: Wifi. |
| 501 |
suboptions: |
| 502 |
DFS: |
| 503 |
type: str |
| 504 |
description: Wi-Fi 5G Radio DFS channel enable/disable. |
| 505 |
choices: ['disable', 'enable'] |
| 506 |
country: |
| 507 |
type: str |
| 508 |
description: Country in which this FEX will operate |
| 509 |
choices: ['AL', 'DZ', 'AR', 'AM', 'AU', 'AT', 'AZ', 'BH', 'BD', 'BY', |
| 510 |
'BE', 'BZ', 'BO', 'BA', 'BR', 'BN', 'BG', 'CA', 'CL', 'CN', |
| 511 |
'CO', 'CR', 'HR', 'CY', 'CZ', 'DK', 'DO', 'EC', 'EG', 'SV', |
| 512 |
'EE', 'FI', 'FR', 'GE', 'DE', 'GR', 'GT', 'HN', 'HK', 'HU', |
| 513 |
'IS', 'IN', 'ID', 'IE', 'IL', 'IT', 'JM', 'JP', 'JO', 'KZ', |
| 514 |
'KE', 'KR', 'KW', 'LV', 'LB', 'LI', 'LT', 'LU', 'MO', 'MK', |
| 515 |
'MY', 'MT', 'MX', 'MC', 'MA', 'NP', 'NL', 'AN', 'NZ', 'NO', |
| 516 |
'OM', 'PK', 'PA', 'PG', 'PE', 'PH', 'PL', 'PT', 'PR', 'QA', |
| 517 |
'RO', 'RU', 'SA', 'SG', 'SK', 'SI', 'ZA', 'ES', 'LK', 'SE', |
| 518 |
'CH', 'TW', 'TH', 'TT', 'TN', 'TR', 'AE', 'UA', 'GB', 'US', |
| 519 |
'PS', 'UY', 'UZ', 'VE', 'VN', 'YE', 'ZW', 'NA', 'BS', 'VC', |
| 520 |
'KH', 'MV', 'AF', 'NG', 'TZ', 'ZM', 'SN', 'CI', 'GH', 'CM', |
| 521 |
'MW', 'AO', 'GA', 'ML', 'BJ', 'MG', 'TD', 'BW', 'LY', 'RW', |
| 522 |
'MZ', 'GM', 'LS', 'MU', 'CG', 'UG', 'BF', 'SL', 'SO', 'CD', |
| 523 |
'NE', 'CF', 'SZ', 'TG', 'LR', 'MR', 'DJ', 'RE', 'RS', 'ME', |
| 524 |
'IQ', 'MD', 'KY', 'BB', 'BM', 'TC', 'VI', 'PM', 'MF', 'GD', |
| 525 |
'IM', 'FO', 'GI', 'GL', 'TM', 'MN', 'VU', 'FJ', 'LA', 'GU', |
| 526 |
'WF', 'MH', 'BT', 'FM', 'PF', 'NI', 'PY', 'HT', 'GY', 'AW', |
| 527 |
'KN', 'GF', 'AS', 'MP', 'PW', 'MM', 'LC', 'GP', 'ET', 'SR', |
| 528 |
'CX', 'DM', 'MQ', 'YT', 'BL', '--', 'TL'] |
| 529 |
radio_1: |
| 530 |
aliases: ['radio-1'] |
| 531 |
type: dict |
| 532 |
description: Radio 1. |
| 533 |
suboptions: |
| 534 |
d80211d: |
| 535 |
aliases: ['80211d'] |
| 536 |
type: str |
| 537 |
description: Enable/disable Wi-Fi 802. |
| 538 |
choices: ['disable', 'enable'] |
| 539 |
band: |
| 540 |
type: str |
| 541 |
description: Wi-Fi band selection 2. |
| 542 |
choices: ['2.4GHz'] |
| 543 |
bandwidth: |
| 544 |
type: str |
| 545 |
description: Wi-Fi channel bandwidth. |
| 546 |
choices: ['auto', '20MHz', '40MHz', '80MHz'] |
| 547 |
beacon_interval: |
| 548 |
aliases: ['beacon-interval'] |
| 549 |
type: int |
| 550 |
description: Wi-Fi beacon interval in miliseconds |
| 551 |
bss_color: |
| 552 |
aliases: ['bss-color'] |
| 553 |
type: int |
| 554 |
description: Wi-Fi 802. |
| 555 |
bss_color_mode: |
| 556 |
aliases: ['bss-color-mode'] |
| 557 |
type: str |
| 558 |
description: Wi-Fi 802. |
| 559 |
choices: ['auto', 'static'] |
| 560 |
channel: |
| 561 |
type: list |
| 562 |
elements: str |
| 563 |
description: Wi-Fi channels. |
| 564 |
choices: ['CH1', 'CH2', 'CH3', 'CH4', 'CH5', 'CH6', 'CH7', 'CH8', |
| 565 |
'CH9', 'CH10', 'CH11'] |
| 566 |
extension_channel: |
| 567 |
aliases: ['extension-channel'] |
| 568 |
type: str |
| 569 |
description: Wi-Fi extension channel. |
| 570 |
choices: ['auto', 'higher', 'lower'] |
| 571 |
guard_interval: |
| 572 |
aliases: ['guard-interval'] |
| 573 |
type: str |
| 574 |
description: Wi-Fi guard interval. |
| 575 |
choices: ['auto', '400ns', '800ns'] |
| 576 |
lan_ext_vap: |
| 577 |
aliases: ['lan-ext-vap'] |
| 578 |
type: raw |
| 579 |
description: (list) Wi-Fi LAN-Extention VAP. |
| 580 |
local_vaps: |
| 581 |
aliases: ['local-vaps'] |
| 582 |
type: raw |
| 583 |
description: (list) Wi-Fi local VAP. |
| 584 |
max_clients: |
| 585 |
aliases: ['max-clients'] |
| 586 |
type: int |
| 587 |
description: Maximum number of Wi-Fi radio clients |
| 588 |
mode: |
| 589 |
type: str |
| 590 |
description: Wi-Fi radio mode AP |
| 591 |
choices: ['AP', 'Client'] |
| 592 |
operating_standard: |
| 593 |
aliases: ['operating-standard'] |
| 594 |
type: str |
| 595 |
description: Wi-Fi operating standard. |
| 596 |
choices: ['auto', '11A-N-AC-AX', '11A-N-AC', '11A-N', '11A', |
| 597 |
'11N-AC-AX', '11AC-AX', '11AC', '11N-AC', '11B-G-N-AX', |
| 598 |
'11B-G-N', '11B-G', '11B', '11G-N-AX', '11N-AX', '11AX', |
| 599 |
'11G-N', '11N', '11G'] |
| 600 |
power_level: |
| 601 |
aliases: ['power-level'] |
| 602 |
type: int |
| 603 |
description: Wi-Fi power level in percent |
| 604 |
radio_id: |
| 605 |
aliases: ['radio-id'] |
| 606 |
type: int |
| 607 |
description: Radio ID. |
| 608 |
status: |
| 609 |
type: str |
| 610 |
description: Enable/disable Wi-Fi radio. |
| 611 |
choices: ['disable', 'enable'] |
| 612 |
radio_2: |
| 613 |
aliases: ['radio-2'] |
| 614 |
type: dict |
| 615 |
description: Radio 2. |
| 616 |
suboptions: |
| 617 |
d80211d: |
| 618 |
aliases: ['80211d'] |
| 619 |
type: str |
| 620 |
description: Enable/disable Wi-Fi 802. |
| 621 |
choices: ['disable', 'enable'] |
| 622 |
band: |
| 623 |
type: str |
| 624 |
description: Wi-Fi band selection 2. |
| 625 |
choices: ['5GHz'] |
| 626 |
bandwidth: |
| 627 |
type: str |
| 628 |
description: Wi-Fi channel bandwidth. |
| 629 |
choices: ['auto', '20MHz', '40MHz', '80MHz'] |
| 630 |
beacon_interval: |
| 631 |
aliases: ['beacon-interval'] |
| 632 |
type: int |
| 633 |
description: Wi-Fi beacon interval in miliseconds |
| 634 |
bss_color: |
| 635 |
aliases: ['bss-color'] |
| 636 |
type: int |
| 637 |
description: Wi-Fi 802. |
| 638 |
bss_color_mode: |
| 639 |
aliases: ['bss-color-mode'] |
| 640 |
type: str |
| 641 |
description: Wi-Fi 802. |
| 642 |
choices: ['auto', 'static'] |
| 643 |
channel: |
| 644 |
type: list |
| 645 |
elements: str |
| 646 |
description: Wi-Fi channels. |
| 647 |
choices: ['CH36', 'CH40', 'CH44', 'CH48', 'CH52', 'CH56', 'CH60', |
| 648 |
'CH64', 'CH100', 'CH104', 'CH108', 'CH112', 'CH116', |
| 649 |
'CH120', 'CH124', 'CH128', 'CH132', 'CH136', 'CH140', |
| 650 |
'CH144', 'CH149', 'CH153', 'CH157', 'CH161', 'CH165'] |
| 651 |
extension_channel: |
| 652 |
aliases: ['extension-channel'] |
| 653 |
type: str |
| 654 |
description: Wi-Fi extension channel. |
| 655 |
choices: ['auto', 'higher', 'lower'] |
| 656 |
guard_interval: |
| 657 |
aliases: ['guard-interval'] |
| 658 |
type: str |
| 659 |
description: Wi-Fi guard interval. |
| 660 |
choices: ['auto', '400ns', '800ns'] |
| 661 |
lan_ext_vap: |
| 662 |
aliases: ['lan-ext-vap'] |
| 663 |
type: raw |
| 664 |
description: (list) Wi-Fi LAN-Extention VAP. |
| 665 |
local_vaps: |
| 666 |
aliases: ['local-vaps'] |
| 667 |
type: raw |
| 668 |
description: (list) Wi-Fi local VAP. |
| 669 |
max_clients: |
| 670 |
aliases: ['max-clients'] |
| 671 |
type: int |
| 672 |
description: Maximum number of Wi-Fi radio clients |
| 673 |
mode: |
| 674 |
type: str |
| 675 |
description: Wi-Fi radio mode AP |
| 676 |
choices: ['AP', 'Client'] |
| 677 |
operating_standard: |
| 678 |
aliases: ['operating-standard'] |
| 679 |
type: str |
| 680 |
description: Wi-Fi operating standard. |
| 681 |
choices: ['auto', '11A-N-AC-AX', '11A-N-AC', '11A-N', '11A', |
| 682 |
'11N-AC-AX', '11AC-AX', '11AC', '11N-AC', '11B-G-N-AX', |
| 683 |
'11B-G-N', '11B-G', '11B', '11G-N-AX', '11N-AX', '11AX', |
| 684 |
'11G-N', '11N', '11G'] |
| 685 |
power_level: |
| 686 |
aliases: ['power-level'] |
| 687 |
type: int |
| 688 |
description: Wi-Fi power level in percent |
| 689 |
radio_id: |
| 690 |
aliases: ['radio-id'] |
| 691 |
type: int |
| 692 |
description: Radio ID. |
| 693 |
status: |
| 694 |
type: str |
| 695 |
description: Enable/disable Wi-Fi radio. |
| 696 |
choices: ['disable', 'enable'] |
| 697 |
''' |
| 698 |
|
| 699 |
EXAMPLES = ''' |
| 700 |
- name: Example playbook (generated based on argument schema) |
| 701 |
hosts: fortimanagers |
| 702 |
connection: httpapi |
| 703 |
gather_facts: false |
| 704 |
tasks: |
| 705 |
- name: FortiExtender extender profile configuration. |
| 706 |
fortinet.fortimanager.fmgr_extensioncontroller_extenderprofile: |
| 707 |
# workspace_locking_adom: <global or your adom name> |
| 708 |
adom: <your own value> |
| 709 |
state: present # <value in [present, absent]> |
| 710 |
extensioncontroller_extenderprofile: |
| 711 |
id: 0 # Required variable, integer |
| 712 |
# allowaccess: ["https", "ping", "ssh", "snmp", "http", "telnet"] |
| 713 |
# bandwidth_limit: <integer> |
| 714 |
# cellular: |
| 715 |
# controller_report: |
| 716 |
# interval: <integer> |
| 717 |
# signal_threshold: <integer> |
| 718 |
# status: <value in [disable, enable]> |
| 719 |
# dataplan: <list or string> |
| 720 |
# modem1: |
| 721 |
# auto_switch: |
| 722 |
# dataplan: <value in [disable, enable]> |
| 723 |
# disconnect: <value in [disable, enable]> |
| 724 |
# disconnect_period: <integer> |
| 725 |
# disconnect_threshold: <integer> |
| 726 |
# signal: <value in [disable, enable]> |
| 727 |
# switch_back: ["time", "timer"] |
| 728 |
# switch_back_time: <string> |
| 729 |
# switch_back_timer: <integer> |
| 730 |
# conn_status: <integer> |
| 731 |
# default_sim: <value in [sim1, sim2, carrier, ...]> |
| 732 |
# gps: <value in [disable, enable]> |
| 733 |
# modem_id: <integer> |
| 734 |
# preferred_carrier: <string> |
| 735 |
# redundant_intf: <string> |
| 736 |
# redundant_mode: <value in [disable, enable]> |
| 737 |
# sim1_pin: <value in [disable, enable]> |
| 738 |
# sim1_pin_code: <list or string> |
| 739 |
# sim2_pin: <value in [disable, enable]> |
| 740 |
# sim2_pin_code: <list or string> |
| 741 |
# multiple_PDN: <value in [disable, enable]> |
| 742 |
# pdn1_dataplan: <list or string> |
| 743 |
# pdn2_dataplan: <list or string> |
| 744 |
# pdn3_dataplan: <list or string> |
| 745 |
# pdn4_dataplan: <list or string> |
| 746 |
# modem2: |
| 747 |
# auto_switch: |
| 748 |
# dataplan: <value in [disable, enable]> |
| 749 |
# disconnect: <value in [disable, enable]> |
| 750 |
# disconnect_period: <integer> |
| 751 |
# disconnect_threshold: <integer> |
| 752 |
# signal: <value in [disable, enable]> |
| 753 |
# switch_back: ["time", "timer"] |
| 754 |
# switch_back_time: <string> |
| 755 |
# switch_back_timer: <integer> |
| 756 |
# conn_status: <integer> |
| 757 |
# default_sim: <value in [sim1, sim2, carrier, ...]> |
| 758 |
# gps: <value in [disable, enable]> |
| 759 |
# modem_id: <integer> |
| 760 |
# preferred_carrier: <string> |
| 761 |
# redundant_intf: <string> |
| 762 |
# redundant_mode: <value in [disable, enable]> |
| 763 |
# sim1_pin: <value in [disable, enable]> |
| 764 |
# sim1_pin_code: <list or string> |
| 765 |
# sim2_pin: <value in [disable, enable]> |
| 766 |
# sim2_pin_code: <list or string> |
| 767 |
# multiple_PDN: <value in [disable, enable]> |
| 768 |
# pdn1_dataplan: <list or string> |
| 769 |
# pdn2_dataplan: <list or string> |
| 770 |
# pdn3_dataplan: <list or string> |
| 771 |
# pdn4_dataplan: <list or string> |
| 772 |
# sms_notification: |
| 773 |
# alert: |
| 774 |
# data_exhausted: <string> |
| 775 |
# fgt_backup_mode_switch: <string> |
| 776 |
# low_signal_strength: <string> |
| 777 |
# mode_switch: <string> |
| 778 |
# os_image_fallback: <string> |
| 779 |
# session_disconnect: <string> |
| 780 |
# system_reboot: <string> |
| 781 |
# receiver: |
| 782 |
# - alert: ["system-reboot", "data-exhausted", "session-disconnect", |
| 783 |
# "low-signal-strength", "mode-switch", "os-image-fallback", |
| 784 |
# "fgt-backup-mode-switch"] |
| 785 |
# name: <string> |
| 786 |
# phone_number: <string> |
| 787 |
# status: <value in [disable, enable]> |
| 788 |
# status: <value in [disable, enable]> |
| 789 |
# enforce_bandwidth: <value in [disable, enable]> |
| 790 |
# extension: <value in [wan-extension, lan-extension]> |
| 791 |
# lan_extension: |
| 792 |
# backhaul: |
| 793 |
# - name: <string> |
| 794 |
# port: <value in [wan, lte1, lte2, ...]> |
| 795 |
# role: <value in [primary, secondary]> |
| 796 |
# weight: <integer> |
| 797 |
# health_check_fail_cnt: <integer> |
| 798 |
# health_check_interval: <integer> |
| 799 |
# health_check_probe_cnt: <integer> |
| 800 |
# health_check_probe_tm: <integer> |
| 801 |
# health_check_recovery_cnt: <integer> |
| 802 |
# backhaul_interface: <string> |
| 803 |
# backhaul_ip: <string> |
| 804 |
# ipsec_tunnel: <string> |
| 805 |
# link_loadbalance: <value in [activebackup, loadbalance]> |
| 806 |
# downlinks: |
| 807 |
# - name: <string> |
| 808 |
# port: <value in [port1, port2, port3, ...]> |
| 809 |
# pvid: <integer> |
| 810 |
# type: <value in [port, vap]> |
| 811 |
# vap: <list or string> |
| 812 |
# vids: <list or integer> |
| 813 |
# traffic_split_services: |
| 814 |
# - address: <list or string> |
| 815 |
# name: <string> |
| 816 |
# service: <list or string> |
| 817 |
# vsdb: <value in [disable, enable]> |
| 818 |
# login_password: <list or string> |
| 819 |
# login_password_change: <value in [no, yes, default]> |
| 820 |
# model: <value in [FX201E, FX211E, FX200F, ...]> |
| 821 |
# name: <string> |
| 822 |
# _is_factory_setting: <value in [disable, enable, ext]> |
| 823 |
# wifi: |
| 824 |
# DFS: <value in [disable, enable]> |
| 825 |
# country: <value in [AL, DZ, AR, ...]> |
| 826 |
# radio_1: |
| 827 |
# d80211d: <value in [disable, enable]> |
| 828 |
# band: <value in [2.4GHz]> |
| 829 |
# bandwidth: <value in [auto, 20MHz, 40MHz, ...]> |
| 830 |
# beacon_interval: <integer> |
| 831 |
# bss_color: <integer> |
| 832 |
# bss_color_mode: <value in [auto, static]> |
| 833 |
# channel: ["CH1", "CH2", "CH3", "CH4", "CH5", "CH6", "CH7", "CH8", "CH9", "CH10", |
| 834 |
# "CH11"] |
| 835 |
# extension_channel: <value in [auto, higher, lower]> |
| 836 |
# guard_interval: <value in [auto, 400ns, 800ns]> |
| 837 |
# lan_ext_vap: <list or string> |
| 838 |
# local_vaps: <list or string> |
| 839 |
# max_clients: <integer> |
| 840 |
# mode: <value in [AP, Client]> |
| 841 |
# operating_standard: <value in [auto, 11A-N-AC-AX, 11A-N-AC, ...]> |
| 842 |
# power_level: <integer> |
| 843 |
# radio_id: <integer> |
| 844 |
# status: <value in [disable, enable]> |
| 845 |
# radio_2: |
| 846 |
# d80211d: <value in [disable, enable]> |
| 847 |
# band: <value in [5GHz]> |
| 848 |
# bandwidth: <value in [auto, 20MHz, 40MHz, ...]> |
| 849 |
# beacon_interval: <integer> |
| 850 |
# bss_color: <integer> |
| 851 |
# bss_color_mode: <value in [auto, static]> |
| 852 |
# channel: ["CH36", "CH40", "CH44", "CH48", "CH52", "CH56", "CH60", "CH64", "CH100", |
| 853 |
# "CH104", "CH108", "CH112", "CH116", "CH120", "CH124", "CH128", "CH132", |
| 854 |
# "CH136", "CH140", "CH144", "CH149", "CH153", "CH157", "CH161", "CH165"] |
| 855 |
# extension_channel: <value in [auto, higher, lower]> |
| 856 |
# guard_interval: <value in [auto, 400ns, 800ns]> |
| 857 |
# lan_ext_vap: <list or string> |
| 858 |
# local_vaps: <list or string> |
| 859 |
# max_clients: <integer> |
| 860 |
# mode: <value in [AP, Client]> |
| 861 |
# operating_standard: <value in [auto, 11A-N-AC-AX, 11A-N-AC, ...]> |
| 862 |
# power_level: <integer> |
| 863 |
# radio_id: <integer> |
| 864 |
# status: <value in [disable, enable]> |
| 865 |
''' |
| 866 |
|
| 867 |
RETURN = ''' |
| 868 |
meta: |
| 869 |
description: The result of the request. |
| 870 |
type: dict |
| 871 |
returned: always |
| 872 |
contains: |
| 873 |
request_url: |
| 874 |
description: The full url requested. |
| 875 |
returned: always |
| 876 |
type: str |
| 877 |
sample: /sys/login/user |
| 878 |
response_code: |
| 879 |
description: The status of api request. |
| 880 |
returned: always |
| 881 |
type: int |
| 882 |
sample: 0 |
| 883 |
response_data: |
| 884 |
description: The api response. |
| 885 |
type: list |
| 886 |
returned: always |
| 887 |
response_message: |
| 888 |
description: The descriptive message of the api response. |
| 889 |
type: str |
| 890 |
returned: always |
| 891 |
sample: OK. |
| 892 |
system_information: |
| 893 |
description: The information of the target system. |
| 894 |
type: dict |
| 895 |
returned: always |
| 896 |
rc: |
| 897 |
description: The status the request. |
| 898 |
type: int |
| 899 |
returned: always |
| 900 |
sample: 0 |
| 901 |
version_check_warning: |
| 902 |
description: Warning if the parameters used in the playbook are not supported by the current FortiManager version. |
| 903 |
type: list |
| 904 |
returned: complex |
| 905 |
''' |
| 906 |
from ansible.module_utils.basic import AnsibleModule |
| 907 |
from ansible.module_utils.connection import Connection |
| 908 |
from ansible_collections.fortinet.fortimanager.plugins.module_utils.napi import NAPIManager, check_galaxy_version, check_parameter_bypass |
| 909 |
from ansible_collections.fortinet.fortimanager.plugins.module_utils.common import get_module_arg_spec |
| 910 |
|
| 911 |
|
| 912 |
def main(): |
| 913 |
urls_list = [ |
| 914 |
'/pm/config/adom/{adom}/obj/extension-controller/extender-profile', |
| 915 |
'/pm/config/global/obj/extension-controller/extender-profile' |
| 916 |
] |
| 917 |
module_arg_spec = { |
| 918 |
'adom': {'required': True, 'type': 'str'}, |
| 919 |
'revision_note': {'type': 'str'}, |
| 920 |
'extensioncontroller_extenderprofile': { |
| 921 |
'type': 'dict', 'v_range': [['7.2.1', '']], |
| 922 |
'options': { |
| 923 |
'allowaccess': { |
| 924 |
'v_range': [['7.2.1', '']], |
| 925 |
'type': 'list', |
| 926 |
'choices': ['https', 'ping', 'ssh', 'snmp', 'http', 'telnet'], |
| 927 |
'elements': 'str' |
| 928 |
}, |
| 929 |
'bandwidth-limit': {'v_range': [['7.2.1', '']], 'type': 'int'}, |
| 930 |
'cellular': { |
| 931 |
'v_range': [['7.2.1', '']], |
| 932 |
'type': 'dict', |
| 933 |
'options': { |
| 934 |
'controller-report': { |
| 935 |
'v_range': [['7.2.1', '']], |
| 936 |
'type': 'dict', |
| 937 |
'options': { |
| 938 |
'interval': {'v_range': [['7.2.1', '']], 'type': 'int'}, |
| 939 |
'signal-threshold': {'v_range': [['7.2.1', '']], 'type': 'int'}, |
| 940 |
'status': {'v_range': [['7.2.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'} |
| 941 |
} |
| 942 |
}, |
| 943 |
'dataplan': {'v_range': [['7.2.1', '']], 'type': 'raw'}, |
| 944 |
'modem1': { |
| 945 |
'v_range': [['7.2.1', '']], |
| 946 |
'type': 'dict', |
| 947 |
'options': { |
| 948 |
'auto-switch': { |
| 949 |
'v_range': [['7.2.1', '']], |
| 950 |
'type': 'dict', |
| 951 |
'options': { |
| 952 |
'dataplan': {'v_range': [['7.2.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 953 |
'disconnect': {'v_range': [['7.2.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 954 |
'disconnect-period': {'v_range': [['7.2.1', '']], 'type': 'int'}, |
| 955 |
'disconnect-threshold': {'v_range': [['7.2.1', '']], 'type': 'int'}, |
| 956 |
'signal': {'v_range': [['7.2.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 957 |
'switch-back': {'v_range': [['7.2.1', '']], 'type': 'list', 'choices': ['time', 'timer'], 'elements': 'str'}, |
| 958 |
'switch-back-time': {'v_range': [['7.2.1', '']], 'type': 'str'}, |
| 959 |
'switch-back-timer': {'v_range': [['7.2.1', '']], 'type': 'int'} |
| 960 |
} |
| 961 |
}, |
| 962 |
'conn-status': {'v_range': [['7.2.1', '']], 'type': 'int'}, |
| 963 |
'default-sim': {'v_range': [['7.2.1', '']], 'choices': ['sim1', 'sim2', 'carrier', 'cost'], 'type': 'str'}, |
| 964 |
'gps': {'v_range': [['7.2.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 965 |
'modem-id': {'v_range': [['7.2.1', '']], 'type': 'int'}, |
| 966 |
'preferred-carrier': {'v_range': [['7.2.1', '']], 'type': 'str'}, |
| 967 |
'redundant-intf': {'v_range': [['7.2.1', '']], 'type': 'str'}, |
| 968 |
'redundant-mode': {'v_range': [['7.2.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 969 |
'sim1-pin': {'v_range': [['7.2.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 970 |
'sim1-pin-code': {'v_range': [['7.2.1', '']], 'type': 'raw'}, |
| 971 |
'sim2-pin': {'v_range': [['7.2.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 972 |
'sim2-pin-code': {'v_range': [['7.2.1', '']], 'type': 'raw'}, |
| 973 |
'multiple-PDN': {'v_range': [['7.6.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 974 |
'pdn1-dataplan': {'v_range': [['7.6.2', '']], 'type': 'raw'}, |
| 975 |
'pdn2-dataplan': {'v_range': [['7.6.2', '']], 'type': 'raw'}, |
| 976 |
'pdn3-dataplan': {'v_range': [['7.6.2', '']], 'type': 'raw'}, |
| 977 |
'pdn4-dataplan': {'v_range': [['7.6.2', '']], 'type': 'raw'} |
| 978 |
} |
| 979 |
}, |
| 980 |
'modem2': { |
| 981 |
'v_range': [['7.2.1', '']], |
| 982 |
'type': 'dict', |
| 983 |
'options': { |
| 984 |
'auto-switch': { |
| 985 |
'v_range': [['7.2.1', '']], |
| 986 |
'type': 'dict', |
| 987 |
'options': { |
| 988 |
'dataplan': {'v_range': [['7.2.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 989 |
'disconnect': {'v_range': [['7.2.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 990 |
'disconnect-period': {'v_range': [['7.2.1', '']], 'type': 'int'}, |
| 991 |
'disconnect-threshold': {'v_range': [['7.2.1', '']], 'type': 'int'}, |
| 992 |
'signal': {'v_range': [['7.2.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 993 |
'switch-back': {'v_range': [['7.2.1', '']], 'type': 'list', 'choices': ['time', 'timer'], 'elements': 'str'}, |
| 994 |
'switch-back-time': {'v_range': [['7.2.1', '']], 'type': 'str'}, |
| 995 |
'switch-back-timer': {'v_range': [['7.2.1', '']], 'type': 'int'} |
| 996 |
} |
| 997 |
}, |
| 998 |
'conn-status': {'v_range': [['7.2.1', '']], 'type': 'int'}, |
| 999 |
'default-sim': {'v_range': [['7.2.1', '']], 'choices': ['sim1', 'sim2', 'carrier', 'cost'], 'type': 'str'}, |
| 1000 |
'gps': {'v_range': [['7.2.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1001 |
'modem-id': {'v_range': [['7.2.1', '']], 'type': 'int'}, |
| 1002 |
'preferred-carrier': {'v_range': [['7.2.1', '']], 'type': 'str'}, |
| 1003 |
'redundant-intf': {'v_range': [['7.2.1', '']], 'type': 'str'}, |
| 1004 |
'redundant-mode': {'v_range': [['7.2.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1005 |
'sim1-pin': {'v_range': [['7.2.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1006 |
'sim1-pin-code': {'v_range': [['7.2.1', '']], 'type': 'raw'}, |
| 1007 |
'sim2-pin': {'v_range': [['7.2.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1008 |
'sim2-pin-code': {'v_range': [['7.2.1', '']], 'type': 'raw'}, |
| 1009 |
'multiple-PDN': {'v_range': [['7.6.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1010 |
'pdn1-dataplan': {'v_range': [['7.6.2', '']], 'type': 'raw'}, |
| 1011 |
'pdn2-dataplan': {'v_range': [['7.6.2', '']], 'type': 'raw'}, |
| 1012 |
'pdn3-dataplan': {'v_range': [['7.6.2', '']], 'type': 'raw'}, |
| 1013 |
'pdn4-dataplan': {'v_range': [['7.6.2', '']], 'type': 'raw'} |
| 1014 |
} |
| 1015 |
}, |
| 1016 |
'sms-notification': { |
| 1017 |
'v_range': [['7.2.1', '']], |
| 1018 |
'type': 'dict', |
| 1019 |
'options': { |
| 1020 |
'alert': { |
| 1021 |
'v_range': [['7.2.1', '']], |
| 1022 |
'type': 'dict', |
| 1023 |
'options': { |
| 1024 |
'data-exhausted': {'v_range': [['7.2.1', '']], 'type': 'str'}, |
| 1025 |
'fgt-backup-mode-switch': {'v_range': [['7.2.1', '']], 'type': 'str'}, |
| 1026 |
'low-signal-strength': {'v_range': [['7.2.1', '']], 'type': 'str'}, |
| 1027 |
'mode-switch': {'v_range': [['7.2.1', '']], 'type': 'str'}, |
| 1028 |
'os-image-fallback': {'v_range': [['7.2.1', '']], 'type': 'str'}, |
| 1029 |
'session-disconnect': {'v_range': [['7.2.1', '']], 'type': 'str'}, |
| 1030 |
'system-reboot': {'v_range': [['7.2.1', '']], 'type': 'str'} |
| 1031 |
} |
| 1032 |
}, |
| 1033 |
'receiver': { |
| 1034 |
'v_range': [['7.2.1', '']], |
| 1035 |
'type': 'list', |
| 1036 |
'options': { |
| 1037 |
'alert': { |
| 1038 |
'v_range': [['7.2.1', '']], |
| 1039 |
'type': 'list', |
| 1040 |
'choices': [ |
| 1041 |
'system-reboot', 'data-exhausted', 'session-disconnect', 'low-signal-strength', 'mode-switch', |
| 1042 |
'os-image-fallback', 'fgt-backup-mode-switch' |
| 1043 |
], |
| 1044 |
'elements': 'str' |
| 1045 |
}, |
| 1046 |
'name': {'v_range': [['7.2.1', '']], 'type': 'str'}, |
| 1047 |
'phone-number': {'v_range': [['7.2.1', '']], 'type': 'str'}, |
| 1048 |
'status': {'v_range': [['7.2.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'} |
| 1049 |
}, |
| 1050 |
'elements': 'dict' |
| 1051 |
}, |
| 1052 |
'status': {'v_range': [['7.2.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'} |
| 1053 |
} |
| 1054 |
} |
| 1055 |
} |
| 1056 |
}, |
| 1057 |
'enforce-bandwidth': {'v_range': [['7.2.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1058 |
'extension': {'v_range': [['7.2.1', '']], 'choices': ['wan-extension', 'lan-extension'], 'type': 'str'}, |
| 1059 |
'id': {'v_range': [['7.2.1', '']], 'required': True, 'type': 'int'}, |
| 1060 |
'lan-extension': { |
| 1061 |
'v_range': [['7.2.1', '']], |
| 1062 |
'type': 'dict', |
| 1063 |
'options': { |
| 1064 |
'backhaul': { |
| 1065 |
'v_range': [['7.2.1', '']], |
| 1066 |
'type': 'list', |
| 1067 |
'options': { |
| 1068 |
'name': {'v_range': [['7.2.1', '']], 'type': 'str'}, |
| 1069 |
'port': { |
| 1070 |
'v_range': [['7.2.1', '']], |
| 1071 |
'choices': ['wan', 'lte1', 'lte2', 'port1', 'port2', 'port3', 'port4', 'port5', 'sfp'], |
| 1072 |
'type': 'str' |
| 1073 |
}, |
| 1074 |
'role': {'v_range': [['7.2.1', '']], 'choices': ['primary', 'secondary'], 'type': 'str'}, |
| 1075 |
'weight': {'v_range': [['7.2.1', '']], 'type': 'int'}, |
| 1076 |
'health-check-fail-cnt': {'v_range': [['7.6.5', '']], 'type': 'int'}, |
| 1077 |
'health-check-interval': {'v_range': [['7.6.5', '']], 'type': 'int'}, |
| 1078 |
'health-check-probe-cnt': {'v_range': [['7.6.5', '']], 'type': 'int'}, |
| 1079 |
'health-check-probe-tm': {'v_range': [['7.6.5', '']], 'type': 'int'}, |
| 1080 |
'health-check-recovery-cnt': {'v_range': [['7.6.5', '']], 'type': 'int'} |
| 1081 |
}, |
| 1082 |
'elements': 'dict' |
| 1083 |
}, |
| 1084 |
'backhaul-interface': {'v_range': [['7.2.1', '']], 'type': 'str'}, |
| 1085 |
'backhaul-ip': {'v_range': [['7.2.1', '']], 'type': 'str'}, |
| 1086 |
'ipsec-tunnel': {'v_range': [['7.2.1', '']], 'type': 'str'}, |
| 1087 |
'link-loadbalance': {'v_range': [['7.2.1', '']], 'choices': ['activebackup', 'loadbalance'], 'type': 'str'}, |
| 1088 |
'downlinks': { |
| 1089 |
'v_range': [['7.6.0', '']], |
| 1090 |
'type': 'list', |
| 1091 |
'options': { |
| 1092 |
'name': {'v_range': [['7.6.0', '']], 'type': 'str'}, |
| 1093 |
'port': { |
| 1094 |
'v_range': [['7.6.0', '']], |
| 1095 |
'choices': ['port1', 'port2', 'port3', 'port4', 'port5', 'lan1', 'lan2', 'lan'], |
| 1096 |
'type': 'str' |
| 1097 |
}, |
| 1098 |
'pvid': {'v_range': [['7.6.0', '']], 'type': 'int'}, |
| 1099 |
'type': {'v_range': [['7.6.0', '']], 'choices': ['port', 'vap'], 'type': 'str'}, |
| 1100 |
'vap': {'v_range': [['7.6.0', '']], 'type': 'raw'}, |
| 1101 |
'vids': {'v_range': [['7.6.4', '']], 'type': 'raw'} |
| 1102 |
}, |
| 1103 |
'elements': 'dict' |
| 1104 |
}, |
| 1105 |
'traffic-split-services': { |
| 1106 |
'v_range': [['7.6.2', '']], |
| 1107 |
'type': 'list', |
| 1108 |
'options': { |
| 1109 |
'address': {'v_range': [['7.6.2', '']], 'type': 'raw'}, |
| 1110 |
'name': {'v_range': [['7.6.2', '']], 'type': 'str'}, |
| 1111 |
'service': {'v_range': [['7.6.2', '']], 'type': 'raw'}, |
| 1112 |
'vsdb': {'v_range': [['7.6.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'} |
| 1113 |
}, |
| 1114 |
'elements': 'dict' |
| 1115 |
} |
| 1116 |
} |
| 1117 |
}, |
| 1118 |
'login-password': {'v_range': [['7.2.1', '']], 'no_log': True, 'type': 'raw'}, |
| 1119 |
'login-password-change': {'v_range': [['7.2.1', '']], 'choices': ['no', 'yes', 'default'], 'type': 'str'}, |
| 1120 |
'model': { |
| 1121 |
'v_range': [['7.2.1', '']], |
| 1122 |
'choices': [ |
| 1123 |
'FX201E', 'FX211E', 'FX200F', 'FXA11F', 'FXE11F', 'FXA21F', 'FXE21F', 'FXA22F', 'FXE22F', 'FX212F', 'FX311F', 'FX312F', 'FX511F', |
| 1124 |
'FVG21F', 'FVA21F', 'FVG22F', 'FVA22F', 'FX04DA', 'FX04DN', 'FX04DI', 'FXR51G', 'FG', 'BS10FW', 'BS20GW', 'BS20GN', 'FXN51G', |
| 1125 |
'FXW51G', 'FVG51G', 'FXE11G', 'FX211G' |
| 1126 |
], |
| 1127 |
'type': 'str' |
| 1128 |
}, |
| 1129 |
'name': {'v_range': [['7.2.1', '']], 'type': 'str'}, |
| 1130 |
'_is_factory_setting': {'v_range': [['7.4.0', '']], 'choices': ['disable', 'enable', 'ext'], 'type': 'str'}, |
| 1131 |
'wifi': { |
| 1132 |
'v_range': [['7.4.3', '']], |
| 1133 |
'type': 'dict', |
| 1134 |
'options': { |
| 1135 |
'DFS': {'v_range': [['7.4.3', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1136 |
'country': { |
| 1137 |
'v_range': [['7.4.3', '']], |
| 1138 |
'choices': [ |
| 1139 |
'AL', 'DZ', 'AR', 'AM', 'AU', 'AT', 'AZ', 'BH', 'BD', 'BY', 'BE', 'BZ', 'BO', 'BA', 'BR', 'BN', 'BG', 'CA', 'CL', 'CN', |
| 1140 |
'CO', 'CR', 'HR', 'CY', 'CZ', 'DK', 'DO', 'EC', 'EG', 'SV', 'EE', 'FI', 'FR', 'GE', 'DE', 'GR', 'GT', 'HN', 'HK', 'HU', |
| 1141 |
'IS', 'IN', 'ID', 'IE', 'IL', 'IT', 'JM', 'JP', 'JO', 'KZ', 'KE', 'KR', 'KW', 'LV', 'LB', 'LI', 'LT', 'LU', 'MO', 'MK', |
| 1142 |
'MY', 'MT', 'MX', 'MC', 'MA', 'NP', 'NL', 'AN', 'NZ', 'NO', 'OM', 'PK', 'PA', 'PG', 'PE', 'PH', 'PL', 'PT', 'PR', 'QA', |
| 1143 |
'RO', 'RU', 'SA', 'SG', 'SK', 'SI', 'ZA', 'ES', 'LK', 'SE', 'CH', 'TW', 'TH', 'TT', 'TN', 'TR', 'AE', 'UA', 'GB', 'US', |
| 1144 |
'PS', 'UY', 'UZ', 'VE', 'VN', 'YE', 'ZW', 'NA', 'BS', 'VC', 'KH', 'MV', 'AF', 'NG', 'TZ', 'ZM', 'SN', 'CI', 'GH', 'CM', |
| 1145 |
'MW', 'AO', 'GA', 'ML', 'BJ', 'MG', 'TD', 'BW', 'LY', 'RW', 'MZ', 'GM', 'LS', 'MU', 'CG', 'UG', 'BF', 'SL', 'SO', 'CD', |
| 1146 |
'NE', 'CF', 'SZ', 'TG', 'LR', 'MR', 'DJ', 'RE', 'RS', 'ME', 'IQ', 'MD', 'KY', 'BB', 'BM', 'TC', 'VI', 'PM', 'MF', 'GD', |
| 1147 |
'IM', 'FO', 'GI', 'GL', 'TM', 'MN', 'VU', 'FJ', 'LA', 'GU', 'WF', 'MH', 'BT', 'FM', 'PF', 'NI', 'PY', 'HT', 'GY', 'AW', |
| 1148 |
'KN', 'GF', 'AS', 'MP', 'PW', 'MM', 'LC', 'GP', 'ET', 'SR', 'CX', 'DM', 'MQ', 'YT', 'BL', '--', 'TL' |
| 1149 |
], |
| 1150 |
'type': 'str' |
| 1151 |
}, |
| 1152 |
'radio-1': { |
| 1153 |
'v_range': [['7.4.3', '']], |
| 1154 |
'type': 'dict', |
| 1155 |
'options': { |
| 1156 |
'80211d': {'v_range': [['7.4.3', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1157 |
'band': {'v_range': [['7.4.3', '']], 'choices': ['2.4GHz'], 'type': 'str'}, |
| 1158 |
'bandwidth': {'v_range': [['7.4.3', '']], 'choices': ['auto', '20MHz', '40MHz', '80MHz'], 'type': 'str'}, |
| 1159 |
'beacon-interval': {'v_range': [['7.4.3', '']], 'type': 'int'}, |
| 1160 |
'bss-color': {'v_range': [['7.4.3', '']], 'type': 'int'}, |
| 1161 |
'bss-color-mode': {'v_range': [['7.4.3', '']], 'choices': ['auto', 'static'], 'type': 'str'}, |
| 1162 |
'channel': { |
| 1163 |
'v_range': [['7.4.3', '']], |
| 1164 |
'type': 'list', |
| 1165 |
'choices': ['CH1', 'CH2', 'CH3', 'CH4', 'CH5', 'CH6', 'CH7', 'CH8', 'CH9', 'CH10', 'CH11'], |
| 1166 |
'elements': 'str' |
| 1167 |
}, |
| 1168 |
'extension-channel': {'v_range': [['7.4.3', '']], 'choices': ['auto', 'higher', 'lower'], 'type': 'str'}, |
| 1169 |
'guard-interval': {'v_range': [['7.4.3', '']], 'choices': ['auto', '400ns', '800ns'], 'type': 'str'}, |
| 1170 |
'lan-ext-vap': {'v_range': [['7.4.3', '']], 'type': 'raw'}, |
| 1171 |
'local-vaps': {'v_range': [['7.4.3', '']], 'type': 'raw'}, |
| 1172 |
'max-clients': {'v_range': [['7.4.3', '']], 'type': 'int'}, |
| 1173 |
'mode': {'v_range': [['7.4.3', '']], 'choices': ['AP', 'Client'], 'type': 'str'}, |
| 1174 |
'operating-standard': { |
| 1175 |
'v_range': [['7.4.3', '']], |
| 1176 |
'choices': [ |
| 1177 |
'auto', '11A-N-AC-AX', '11A-N-AC', '11A-N', '11A', '11N-AC-AX', '11AC-AX', '11AC', '11N-AC', '11B-G-N-AX', |
| 1178 |
'11B-G-N', '11B-G', '11B', '11G-N-AX', '11N-AX', '11AX', '11G-N', '11N', '11G' |
| 1179 |
], |
| 1180 |
'type': 'str' |
| 1181 |
}, |
| 1182 |
'power-level': {'v_range': [['7.4.3', '']], 'type': 'int'}, |
| 1183 |
'radio-id': {'v_range': [['7.4.3', '']], 'type': 'int'}, |
| 1184 |
'status': {'v_range': [['7.4.3', '']], 'choices': ['disable', 'enable'], 'type': 'str'} |
| 1185 |
} |
| 1186 |
}, |
| 1187 |
'radio-2': { |
| 1188 |
'v_range': [['7.4.3', '']], |
| 1189 |
'type': 'dict', |
| 1190 |
'options': { |
| 1191 |
'80211d': {'v_range': [['7.4.3', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1192 |
'band': {'v_range': [['7.4.3', '']], 'choices': ['5GHz'], 'type': 'str'}, |
| 1193 |
'bandwidth': {'v_range': [['7.4.3', '']], 'choices': ['auto', '20MHz', '40MHz', '80MHz'], 'type': 'str'}, |
| 1194 |
'beacon-interval': {'v_range': [['7.4.3', '']], 'type': 'int'}, |
| 1195 |
'bss-color': {'v_range': [['7.4.3', '']], 'type': 'int'}, |
| 1196 |
'bss-color-mode': {'v_range': [['7.4.3', '']], 'choices': ['auto', 'static'], 'type': 'str'}, |
| 1197 |
'channel': { |
| 1198 |
'v_range': [['7.4.3', '']], |
| 1199 |
'type': 'list', |
| 1200 |
'choices': [ |
| 1201 |
'CH36', 'CH40', 'CH44', 'CH48', 'CH52', 'CH56', 'CH60', 'CH64', 'CH100', 'CH104', 'CH108', 'CH112', 'CH116', |
| 1202 |
'CH120', 'CH124', 'CH128', 'CH132', 'CH136', 'CH140', 'CH144', 'CH149', 'CH153', 'CH157', 'CH161', 'CH165' |
| 1203 |
], |
| 1204 |
'elements': 'str' |
| 1205 |
}, |
| 1206 |
'extension-channel': {'v_range': [['7.4.3', '']], 'choices': ['auto', 'higher', 'lower'], 'type': 'str'}, |
| 1207 |
'guard-interval': {'v_range': [['7.4.3', '']], 'choices': ['auto', '400ns', '800ns'], 'type': 'str'}, |
| 1208 |
'lan-ext-vap': {'v_range': [['7.4.3', '']], 'type': 'raw'}, |
| 1209 |
'local-vaps': {'v_range': [['7.4.3', '']], 'type': 'raw'}, |
| 1210 |
'max-clients': {'v_range': [['7.4.3', '']], 'type': 'int'}, |
| 1211 |
'mode': {'v_range': [['7.4.3', '']], 'choices': ['AP', 'Client'], 'type': 'str'}, |
| 1212 |
'operating-standard': { |
| 1213 |
'v_range': [['7.4.3', '']], |
| 1214 |
'choices': [ |
| 1215 |
'auto', '11A-N-AC-AX', '11A-N-AC', '11A-N', '11A', '11N-AC-AX', '11AC-AX', '11AC', '11N-AC', '11B-G-N-AX', |
| 1216 |
'11B-G-N', '11B-G', '11B', '11G-N-AX', '11N-AX', '11AX', '11G-N', '11N', '11G' |
| 1217 |
], |
| 1218 |
'type': 'str' |
| 1219 |
}, |
| 1220 |
'power-level': {'v_range': [['7.4.3', '']], 'type': 'int'}, |
| 1221 |
'radio-id': {'v_range': [['7.4.3', '']], 'type': 'int'}, |
| 1222 |
'status': {'v_range': [['7.4.3', '']], 'choices': ['disable', 'enable'], 'type': 'str'} |
| 1223 |
} |
| 1224 |
} |
| 1225 |
} |
| 1226 |
} |
| 1227 |
} |
| 1228 |
} |
| 1229 |
} |
| 1230 |
|
| 1231 |
module_option_spec = get_module_arg_spec('full crud') |
| 1232 |
module_arg_spec.update(module_option_spec) |
| 1233 |
check_galaxy_version(module_arg_spec) |
| 1234 |
module = AnsibleModule(argument_spec=check_parameter_bypass(module_arg_spec, 'extensioncontroller_extenderprofile'), |
| 1235 |
supports_check_mode=True) |
| 1236 |
if not module._socket_path: |
| 1237 |
module.fail_json(msg='MUST RUN IN HTTPAPI MODE') |
| 1238 |
connection = Connection(module._socket_path) |
| 1239 |
fmgr = NAPIManager('full crud', module_arg_spec, urls_list, |
| 1240 |
'id', 'data', module, connection) |
| 1241 |
fmgr.process_crud() |
| 1242 |
module.exit_json(meta=module.params) |
| 1243 |
|
| 1244 |
|
| 1245 |
if __name__ == '__main__': |
| 1246 |
main() |