Debian Codegraph @

ansible_collections/fortinet/fortimanager/plugins/modules/fmgr_firewall_gtp.py

raw symbols SCIP
1 #!/usr/bin/python
2 from __future__ import absolute_import, division, print_function
3 # Copyright 2019-2024 Fortinet, Inc.
4 # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
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_firewall_gtp
15 short_description: Configure GTP.
16 version_added: "2.0.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 firewall_gtp:
29 description: The top level parameters set.
30 required: false
31 type: dict
32 suboptions:
33 addr_notify:
34 aliases: ['addr-notify']
35 type: str
36 description: Overbilling notify address
37 apn:
38 type: list
39 elements: dict
40 description: Apn.
41 suboptions:
42 action:
43 type: str
44 description: Action.
45 choices: ['allow', 'deny']
46 apnmember:
47 type: raw
48 description: (list or str) APN member.
49 id:
50 type: int
51 description: ID.
52 selection_mode:
53 aliases: ['selection-mode']
54 type: list
55 elements: str
56 description: APN selection mode.
57 choices: ['ms', 'net', 'vrf']
58 apn_filter:
59 aliases: ['apn-filter']
60 type: str
61 description: Apn filter
62 choices: ['disable', 'enable']
63 authorized_ggsns:
64 aliases: ['authorized-ggsns']
65 type: str
66 description: Authorized GGSN group
67 authorized_sgsns:
68 aliases: ['authorized-sgsns']
69 type: str
70 description: Authorized SGSN group
71 comment:
72 type: str
73 description: Comment.
74 context_id:
75 aliases: ['context-id']
76 type: int
77 description: Overbilling context.
78 control_plane_message_rate_limit:
79 aliases: ['control-plane-message-rate-limit']
80 type: int
81 description: Control plane message rate limit
82 default_apn_action:
83 aliases: ['default-apn-action']
84 type: str
85 description: Default apn action
86 choices: ['allow', 'deny']
87 default_imsi_action:
88 aliases: ['default-imsi-action']
89 type: str
90 description: Default imsi action
91 choices: ['allow', 'deny']
92 default_ip_action:
93 aliases: ['default-ip-action']
94 type: str
95 description: Default action for encapsulated IP traffic
96 choices: ['allow', 'deny']
97 default_noip_action:
98 aliases: ['default-noip-action']
99 type: str
100 description: Default action for encapsulated non-IP traffic
101 choices: ['allow', 'deny']
102 default_policy_action:
103 aliases: ['default-policy-action']
104 type: str
105 description: Default advanced policy action
106 choices: ['allow', 'deny']
107 denied_log:
108 aliases: ['denied-log']
109 type: str
110 description: Log denied
111 choices: ['disable', 'enable']
112 echo_request_interval:
113 aliases: ['echo-request-interval']
114 type: int
115 description: Echo request interval
116 extension_log:
117 aliases: ['extension-log']
118 type: str
119 description: Log in extension format
120 choices: ['disable', 'enable']
121 forwarded_log:
122 aliases: ['forwarded-log']
123 type: str
124 description: Log forwarded
125 choices: ['disable', 'enable']
126 global_tunnel_limit:
127 aliases: ['global-tunnel-limit']
128 type: str
129 description: Global tunnel limit.
130 gtp_in_gtp:
131 aliases: ['gtp-in-gtp']
132 type: str
133 description: Gtp in gtp
134 choices: ['allow', 'deny']
135 gtpu_denied_log:
136 aliases: ['gtpu-denied-log']
137 type: str
138 description: Enable/disable logging of denied GTP-U packets.
139 choices: ['disable', 'enable']
140 gtpu_forwarded_log:
141 aliases: ['gtpu-forwarded-log']
142 type: str
143 description: Enable/disable logging of forwarded GTP-U packets.
144 choices: ['disable', 'enable']
145 gtpu_log_freq:
146 aliases: ['gtpu-log-freq']
147 type: int
148 description: Logging of frequency of GTP-U packets.
149 half_close_timeout:
150 aliases: ['half-close-timeout']
151 type: int
152 description: Half-close tunnel timeout
153 half_open_timeout:
154 aliases: ['half-open-timeout']
155 type: int
156 description: Half-open tunnel timeout
157 handover_group:
158 aliases: ['handover-group']
159 type: str
160 description: Handover SGSN group
161 ie_remove_policy:
162 aliases: ['ie-remove-policy']
163 type: list
164 elements: dict
165 description: Ie remove policy.
166 suboptions:
167 id:
168 type: int
169 description: ID.
170 remove_ies:
171 aliases: ['remove-ies']
172 type: list
173 elements: str
174 description: GTP IEs to be removed.
175 choices: ['apn-restriction', 'rat-type', 'rai', 'uli', 'imei']
176 sgsn_addr:
177 aliases: ['sgsn-addr']
178 type: str
179 description: SGSN address name.
180 sgsn_addr6:
181 aliases: ['sgsn-addr6']
182 type: str
183 description: SGSN IPv6 address name.
184 ie_remover:
185 aliases: ['ie-remover']
186 type: str
187 description: IE removal policy.
188 choices: ['disable', 'enable']
189 ie_white_list_v0v1:
190 aliases: ['ie-white-list-v0v1']
191 type: str
192 description: IE white list.
193 ie_white_list_v2:
194 aliases: ['ie-white-list-v2']
195 type: str
196 description: IE white list.
197 imsi:
198 type: list
199 elements: dict
200 description: Imsi.
201 suboptions:
202 action:
203 type: str
204 description: Action.
205 choices: ['allow', 'deny']
206 apnmember:
207 type: raw
208 description: (list or str) APN member.
209 id:
210 type: int
211 description: ID.
212 mcc_mnc:
213 aliases: ['mcc-mnc']
214 type: str
215 description: MCC MNC.
216 msisdn_prefix:
217 aliases: ['msisdn-prefix']
218 type: str
219 description: MSISDN prefix.
220 selection_mode:
221 aliases: ['selection-mode']
222 type: list
223 elements: str
224 description: APN selection mode.
225 choices: ['ms', 'net', 'vrf']
226 imsi_filter:
227 aliases: ['imsi-filter']
228 type: str
229 description: Imsi filter
230 choices: ['disable', 'enable']
231 interface_notify:
232 aliases: ['interface-notify']
233 type: str
234 description: Overbilling interface
235 invalid_reserved_field:
236 aliases: ['invalid-reserved-field']
237 type: str
238 description: Invalid reserved field in GTP header
239 choices: ['allow', 'deny']
240 invalid_sgsns_to_log:
241 aliases: ['invalid-sgsns-to-log']
242 type: str
243 description: Invalid SGSN group to be logged
244 ip_filter:
245 aliases: ['ip-filter']
246 type: str
247 description: IP filter for encapsulted traffic
248 choices: ['disable', 'enable']
249 ip_policy:
250 aliases: ['ip-policy']
251 type: list
252 elements: dict
253 description: Ip policy.
254 suboptions:
255 action:
256 type: str
257 description: Action.
258 choices: ['allow', 'deny']
259 dstaddr:
260 type: str
261 description: Destination address name.
262 id:
263 type: int
264 description: ID.
265 srcaddr:
266 type: str
267 description: Source address name.
268 dstaddr6:
269 type: str
270 description: Destination IPv6 address name.
271 srcaddr6:
272 type: str
273 description: Source IPv6 address name.
274 log_freq:
275 aliases: ['log-freq']
276 type: int
277 description: Logging of frequency of GTP-C packets.
278 log_gtpu_limit:
279 aliases: ['log-gtpu-limit']
280 type: int
281 description: The user data log limit
282 log_imsi_prefix:
283 aliases: ['log-imsi-prefix']
284 type: str
285 description: IMSI prefix for selective logging.
286 log_msisdn_prefix:
287 aliases: ['log-msisdn-prefix']
288 type: str
289 description: The msisdn prefix for selective logging
290 max_message_length:
291 aliases: ['max-message-length']
292 type: int
293 description: Max message length
294 message_filter_v0v1:
295 aliases: ['message-filter-v0v1']
296 type: str
297 description: Message filter.
298 message_filter_v2:
299 aliases: ['message-filter-v2']
300 type: str
301 description: Message filter.
302 min_message_length:
303 aliases: ['min-message-length']
304 type: int
305 description: Min message length
306 miss_must_ie:
307 aliases: ['miss-must-ie']
308 type: str
309 description: Missing mandatory information element
310 choices: ['allow', 'deny']
311 monitor_mode:
312 aliases: ['monitor-mode']
313 type: str
314 description: GTP monitor mode
315 choices: ['disable', 'enable', 'vdom']
316 name:
317 type: str
318 description: Profile name.
319 required: true
320 noip_filter:
321 aliases: ['noip-filter']
322 type: str
323 description: Non-IP filter for encapsulted traffic
324 choices: ['disable', 'enable']
325 noip_policy:
326 aliases: ['noip-policy']
327 type: list
328 elements: dict
329 description: Noip policy.
330 suboptions:
331 action:
332 type: str
333 description: Action.
334 choices: ['allow', 'deny']
335 end:
336 type: int
337 description: End of protocol range
338 id:
339 type: int
340 description: ID.
341 start:
342 type: int
343 description: Start of protocol range
344 type:
345 type: str
346 description: Protocol field type.
347 choices: ['etsi', 'ietf']
348 out_of_state_ie:
349 aliases: ['out-of-state-ie']
350 type: str
351 description: Out of state information element.
352 choices: ['allow', 'deny']
353 out_of_state_message:
354 aliases: ['out-of-state-message']
355 type: str
356 description: Out of state GTP message
357 choices: ['allow', 'deny']
358 per_apn_shaper:
359 aliases: ['per-apn-shaper']
360 type: list
361 elements: dict
362 description: Per apn shaper.
363 suboptions:
364 apn:
365 type: str
366 description: APN name.
367 id:
368 type: int
369 description: ID.
370 rate_limit:
371 aliases: ['rate-limit']
372 type: int
373 description: Rate limit
374 version:
375 type: int
376 description: GTP version number
377 policy:
378 type: list
379 elements: dict
380 description: Policy.
381 suboptions:
382 action:
383 type: str
384 description: Action.
385 choices: ['allow', 'deny']
386 apn_sel_mode:
387 aliases: ['apn-sel-mode']
388 type: list
389 elements: str
390 description: APN selection mode.
391 choices: ['ms', 'net', 'vrf']
392 apnmember:
393 type: raw
394 description: (list or str) APN member.
395 id:
396 type: int
397 description: ID.
398 imei:
399 type: str
400 description: IMEI
401 imsi:
402 type: str
403 description: IMSI prefix.
404 max_apn_restriction:
405 aliases: ['max-apn-restriction']
406 type: str
407 description: Maximum APN restriction value.
408 choices: ['all', 'public-1', 'public-2', 'private-1', 'private-2']
409 messages:
410 type: list
411 elements: str
412 description: GTP messages.
413 choices: ['create-req', 'create-res', 'update-req', 'update-res']
414 msisdn:
415 type: str
416 description: MSISDN prefix.
417 rai:
418 type: str
419 description: RAI pattern.
420 rat_type:
421 aliases: ['rat-type']
422 type: list
423 elements: str
424 description: RAT Type.
425 choices: ['any', 'utran', 'geran', 'wlan', 'gan', 'hspa', 'eutran',
426 'virtual', 'nbiot']
427 uli:
428 type: str
429 description: ULI pattern.
430 imsi_prefix:
431 aliases: ['imsi-prefix']
432 type: str
433 description: IMSI prefix.
434 msisdn_prefix:
435 aliases: ['msisdn-prefix']
436 type: str
437 description: MSISDN prefix.
438 apn:
439 type: str
440 description: APN subfix.
441 policy_filter:
442 aliases: ['policy-filter']
443 type: str
444 description: Advanced policy filter
445 choices: ['disable', 'enable']
446 port_notify:
447 aliases: ['port-notify']
448 type: int
449 description: Overbilling notify port
450 rate_limit_mode:
451 aliases: ['rate-limit-mode']
452 type: str
453 description: GTP rate limit mode.
454 choices: ['per-profile', 'per-stream', 'per-apn']
455 rate_limited_log:
456 aliases: ['rate-limited-log']
457 type: str
458 description: Log rate limited
459 choices: ['disable', 'enable']
460 rate_sampling_interval:
461 aliases: ['rate-sampling-interval']
462 type: int
463 description: Rate sampling interval
464 remove_if_echo_expires:
465 aliases: ['remove-if-echo-expires']
466 type: str
467 description: Remove if echo response expires
468 choices: ['disable', 'enable']
469 remove_if_recovery_differ:
470 aliases: ['remove-if-recovery-differ']
471 type: str
472 description: Remove upon different Recovery IE
473 choices: ['disable', 'enable']
474 reserved_ie:
475 aliases: ['reserved-ie']
476 type: str
477 description: Reserved information element
478 choices: ['allow', 'deny']
479 send_delete_when_timeout:
480 aliases: ['send-delete-when-timeout']
481 type: str
482 description: Send DELETE request to path endpoints when GTPv0/v1 tunnel timeout.
483 choices: ['disable', 'enable']
484 send_delete_when_timeout_v2:
485 aliases: ['send-delete-when-timeout-v2']
486 type: str
487 description: Send DELETE request to path endpoints when GTPv2 tunnel timeout.
488 choices: ['disable', 'enable']
489 spoof_src_addr:
490 aliases: ['spoof-src-addr']
491 type: str
492 description: Spoofed source address for Mobile Station.
493 choices: ['allow', 'deny']
494 state_invalid_log:
495 aliases: ['state-invalid-log']
496 type: str
497 description: Log state invalid
498 choices: ['disable', 'enable']
499 traffic_count_log:
500 aliases: ['traffic-count-log']
501 type: str
502 description: Log tunnel traffic counter
503 choices: ['disable', 'enable']
504 tunnel_limit:
505 aliases: ['tunnel-limit']
506 type: int
507 description: Tunnel limit
508 tunnel_limit_log:
509 aliases: ['tunnel-limit-log']
510 type: str
511 description: Tunnel limit
512 choices: ['disable', 'enable']
513 tunnel_timeout:
514 aliases: ['tunnel-timeout']
515 type: int
516 description: Established tunnel timeout
517 unknown_version_action:
518 aliases: ['unknown-version-action']
519 type: str
520 description: Action for unknown gtp version
521 choices: ['allow', 'deny']
522 user_plane_message_rate_limit:
523 aliases: ['user-plane-message-rate-limit']
524 type: int
525 description: User plane message rate limit
526 warning_threshold:
527 aliases: ['warning-threshold']
528 type: int
529 description: Warning threshold for rate limiting
530 policy_v2:
531 aliases: ['policy-v2']
532 type: list
533 elements: dict
534 description: Policy v2.
535 suboptions:
536 action:
537 type: str
538 description: Action.
539 choices: ['deny', 'allow']
540 apn_sel_mode:
541 aliases: ['apn-sel-mode']
542 type: list
543 elements: str
544 description: APN selection mode.
545 choices: ['ms', 'net', 'vrf']
546 apnmember:
547 type: raw
548 description: (list or str) APN member.
549 id:
550 type: int
551 description: ID.
552 imsi_prefix:
553 aliases: ['imsi-prefix']
554 type: str
555 description: IMSI prefix.
556 max_apn_restriction:
557 aliases: ['max-apn-restriction']
558 type: str
559 description: Maximum APN restriction value.
560 choices: ['all', 'public-1', 'public-2', 'private-1', 'private-2']
561 mei:
562 type: str
563 description: MEI pattern.
564 messages:
565 type: list
566 elements: str
567 description: GTP messages.
568 choices: ['create-ses-req', 'create-ses-res', 'modify-bearer-req',
569 'modify-bearer-res']
570 msisdn_prefix:
571 aliases: ['msisdn-prefix']
572 type: str
573 description: MSISDN prefix.
574 rat_type:
575 aliases: ['rat-type']
576 type: list
577 elements: str
578 description: RAT Type.
579 choices: ['any', 'utran', 'geran', 'wlan', 'gan', 'hspa', 'eutran',
580 'virtual', 'nbiot', 'ltem', 'nr']
581 uli:
582 type: raw
583 description: (list) GTPv2 ULI patterns
584 sub_second_interval:
585 aliases: ['sub-second-interval']
586 type: str
587 description: Sub-second interval
588 choices: ['0.1', '0.25', '0.5']
589 sub_second_sampling:
590 aliases: ['sub-second-sampling']
591 type: str
592 description: Enable/disable sub-second sampling.
593 choices: ['disable', 'enable']
594 authorized_ggsns6:
595 aliases: ['authorized-ggsns6']
596 type: str
597 description: Authorized GGSN/PGW IPv6 group.
598 authorized_sgsns6:
599 aliases: ['authorized-sgsns6']
600 type: str
601 description: Authorized SGSN/SGW IPv6 group.
602 handover_group6:
603 aliases: ['handover-group6']
604 type: str
605 description: Handover SGSN/SGW IPv6 group.
606 invalid_sgsns6_to_log:
607 aliases: ['invalid-sgsns6-to-log']
608 type: str
609 description: Invalid SGSN IPv6 group to be logged.
610 ie_validation:
611 aliases: ['ie-validation']
612 type: dict
613 description: Ie validation.
614 suboptions:
615 apn_restriction:
616 aliases: ['apn-restriction']
617 type: str
618 description: Validate APN restriction.
619 choices: ['disable', 'enable']
620 charging_ID:
621 aliases: ['charging-ID']
622 type: str
623 description: Validate charging ID.
624 choices: ['disable', 'enable']
625 charging_gateway_addr:
626 aliases: ['charging-gateway-addr']
627 type: str
628 description: Validate charging gateway address.
629 choices: ['disable', 'enable']
630 end_user_addr:
631 aliases: ['end-user-addr']
632 type: str
633 description: Validate end user address.
634 choices: ['disable', 'enable']
635 gsn_addr:
636 aliases: ['gsn-addr']
637 type: str
638 description: Validate GSN address.
639 choices: ['disable', 'enable']
640 imei:
641 type: str
642 description: Validate IMEI
643 choices: ['disable', 'enable']
644 imsi:
645 type: str
646 description: Validate IMSI.
647 choices: ['disable', 'enable']
648 mm_context:
649 aliases: ['mm-context']
650 type: str
651 description: Validate MM context.
652 choices: ['disable', 'enable']
653 ms_tzone:
654 aliases: ['ms-tzone']
655 type: str
656 description: Validate MS time zone.
657 choices: ['disable', 'enable']
658 ms_validated:
659 aliases: ['ms-validated']
660 type: str
661 description: Validate MS validated.
662 choices: ['disable', 'enable']
663 msisdn:
664 type: str
665 description: Validate MSISDN.
666 choices: ['disable', 'enable']
667 nsapi:
668 type: str
669 description: Validate NSAPI.
670 choices: ['disable', 'enable']
671 pdp_context:
672 aliases: ['pdp-context']
673 type: str
674 description: Validate PDP context.
675 choices: ['disable', 'enable']
676 qos_profile:
677 aliases: ['qos-profile']
678 type: str
679 description: Validate Quality of Service
680 choices: ['disable', 'enable']
681 rai:
682 type: str
683 description: Validate RAI.
684 choices: ['disable', 'enable']
685 rat_type:
686 aliases: ['rat-type']
687 type: str
688 description: Validate RAT type.
689 choices: ['disable', 'enable']
690 reordering_required:
691 aliases: ['reordering-required']
692 type: str
693 description: Validate re-ordering required.
694 choices: ['disable', 'enable']
695 selection_mode:
696 aliases: ['selection-mode']
697 type: str
698 description: Validate selection mode.
699 choices: ['disable', 'enable']
700 uli:
701 type: str
702 description: Validate user location information.
703 choices: ['disable', 'enable']
704 message_rate_limit:
705 aliases: ['message-rate-limit']
706 type: dict
707 description: Message rate limit.
708 suboptions:
709 create_aa_pdp_request:
710 aliases: ['create-aa-pdp-request']
711 type: int
712 description: Rate limit for create AA PDP context request
713 create_aa_pdp_response:
714 aliases: ['create-aa-pdp-response']
715 type: int
716 description: Rate limit for create AA PDP context response
717 create_mbms_request:
718 aliases: ['create-mbms-request']
719 type: int
720 description: Rate limit for create MBMS context request
721 create_mbms_response:
722 aliases: ['create-mbms-response']
723 type: int
724 description: Rate limit for create MBMS context response
725 create_pdp_request:
726 aliases: ['create-pdp-request']
727 type: int
728 description: Rate limit for create PDP context request
729 create_pdp_response:
730 aliases: ['create-pdp-response']
731 type: int
732 description: Rate limit for create PDP context response
733 delete_aa_pdp_request:
734 aliases: ['delete-aa-pdp-request']
735 type: int
736 description: Rate limit for delete AA PDP context request
737 delete_aa_pdp_response:
738 aliases: ['delete-aa-pdp-response']
739 type: int
740 description: Rate limit for delete AA PDP context response
741 delete_mbms_request:
742 aliases: ['delete-mbms-request']
743 type: int
744 description: Rate limit for delete MBMS context request
745 delete_mbms_response:
746 aliases: ['delete-mbms-response']
747 type: int
748 description: Rate limit for delete MBMS context response
749 delete_pdp_request:
750 aliases: ['delete-pdp-request']
751 type: int
752 description: Rate limit for delete PDP context request
753 delete_pdp_response:
754 aliases: ['delete-pdp-response']
755 type: int
756 description: Rate limit for delete PDP context response
757 echo_reponse:
758 aliases: ['echo-reponse']
759 type: int
760 description: Rate limit for echo response
761 echo_request:
762 aliases: ['echo-request']
763 type: int
764 description: Rate limit for echo requests
765 error_indication:
766 aliases: ['error-indication']
767 type: int
768 description: Rate limit for error indication
769 failure_report_request:
770 aliases: ['failure-report-request']
771 type: int
772 description: Rate limit for failure report request
773 failure_report_response:
774 aliases: ['failure-report-response']
775 type: int
776 description: Rate limit for failure report response
777 fwd_reloc_complete_ack:
778 aliases: ['fwd-reloc-complete-ack']
779 type: int
780 description: Rate limit for forward relocation complete acknowledge
781 fwd_relocation_complete:
782 aliases: ['fwd-relocation-complete']
783 type: int
784 description: Rate limit for forward relocation complete
785 fwd_relocation_request:
786 aliases: ['fwd-relocation-request']
787 type: int
788 description: Rate limit for forward relocation request
789 fwd_relocation_response:
790 aliases: ['fwd-relocation-response']
791 type: int
792 description: Rate limit for forward relocation response
793 fwd_srns_context:
794 aliases: ['fwd-srns-context']
795 type: int
796 description: Rate limit for forward SRNS context
797 fwd_srns_context_ack:
798 aliases: ['fwd-srns-context-ack']
799 type: int
800 description: Rate limit for forward SRNS context acknowledge
801 g_pdu:
802 aliases: ['g-pdu']
803 type: int
804 description: Rate limit for G-PDU
805 identification_request:
806 aliases: ['identification-request']
807 type: int
808 description: Rate limit for identification request
809 identification_response:
810 aliases: ['identification-response']
811 type: int
812 description: Rate limit for identification response
813 mbms_de_reg_request:
814 aliases: ['mbms-de-reg-request']
815 type: int
816 description: Rate limit for MBMS de-registration request
817 mbms_de_reg_response:
818 aliases: ['mbms-de-reg-response']
819 type: int
820 description: Rate limit for MBMS de-registration response
821 mbms_notify_rej_request:
822 aliases: ['mbms-notify-rej-request']
823 type: int
824 description: Rate limit for MBMS notification reject request
825 mbms_notify_rej_response:
826 aliases: ['mbms-notify-rej-response']
827 type: int
828 description: Rate limit for MBMS notification reject response
829 mbms_notify_request:
830 aliases: ['mbms-notify-request']
831 type: int
832 description: Rate limit for MBMS notification request
833 mbms_notify_response:
834 aliases: ['mbms-notify-response']
835 type: int
836 description: Rate limit for MBMS notification response
837 mbms_reg_request:
838 aliases: ['mbms-reg-request']
839 type: int
840 description: Rate limit for MBMS registration request
841 mbms_reg_response:
842 aliases: ['mbms-reg-response']
843 type: int
844 description: Rate limit for MBMS registration response
845 mbms_ses_start_request:
846 aliases: ['mbms-ses-start-request']
847 type: int
848 description: Rate limit for MBMS session start request
849 mbms_ses_start_response:
850 aliases: ['mbms-ses-start-response']
851 type: int
852 description: Rate limit for MBMS session start response
853 mbms_ses_stop_request:
854 aliases: ['mbms-ses-stop-request']
855 type: int
856 description: Rate limit for MBMS session stop request
857 mbms_ses_stop_response:
858 aliases: ['mbms-ses-stop-response']
859 type: int
860 description: Rate limit for MBMS session stop response
861 note_ms_request:
862 aliases: ['note-ms-request']
863 type: int
864 description: Rate limit for note MS GPRS present request
865 note_ms_response:
866 aliases: ['note-ms-response']
867 type: int
868 description: Rate limit for note MS GPRS present response
869 pdu_notify_rej_request:
870 aliases: ['pdu-notify-rej-request']
871 type: int
872 description: Rate limit for PDU notify reject request
873 pdu_notify_rej_response:
874 aliases: ['pdu-notify-rej-response']
875 type: int
876 description: Rate limit for PDU notify reject response
877 pdu_notify_request:
878 aliases: ['pdu-notify-request']
879 type: int
880 description: Rate limit for PDU notify request
881 pdu_notify_response:
882 aliases: ['pdu-notify-response']
883 type: int
884 description: Rate limit for PDU notify response
885 ran_info:
886 aliases: ['ran-info']
887 type: int
888 description: Rate limit for RAN information relay
889 relocation_cancel_request:
890 aliases: ['relocation-cancel-request']
891 type: int
892 description: Rate limit for relocation cancel request
893 relocation_cancel_response:
894 aliases: ['relocation-cancel-response']
895 type: int
896 description: Rate limit for relocation cancel response
897 send_route_request:
898 aliases: ['send-route-request']
899 type: int
900 description: Rate limit for send routing information for GPRS request
901 send_route_response:
902 aliases: ['send-route-response']
903 type: int
904 description: Rate limit for send routing information for GPRS response
905 sgsn_context_ack:
906 aliases: ['sgsn-context-ack']
907 type: int
908 description: Rate limit for SGSN context acknowledgement
909 sgsn_context_request:
910 aliases: ['sgsn-context-request']
911 type: int
912 description: Rate limit for SGSN context request
913 sgsn_context_response:
914 aliases: ['sgsn-context-response']
915 type: int
916 description: Rate limit for SGSN context response
917 support_ext_hdr_notify:
918 aliases: ['support-ext-hdr-notify']
919 type: int
920 description: Rate limit for support extension headers notification
921 update_mbms_request:
922 aliases: ['update-mbms-request']
923 type: int
924 description: Rate limit for update MBMS context request
925 update_mbms_response:
926 aliases: ['update-mbms-response']
927 type: int
928 description: Rate limit for update MBMS context response
929 update_pdp_request:
930 aliases: ['update-pdp-request']
931 type: int
932 description: Rate limit for update PDP context request
933 update_pdp_response:
934 aliases: ['update-pdp-response']
935 type: int
936 description: Rate limit for update PDP context response
937 version_not_support:
938 aliases: ['version-not-support']
939 type: int
940 description: Rate limit for version not supported
941 echo_response:
942 aliases: ['echo-response']
943 type: int
944 description: Rate limit for echo response
945 message_rate_limit_v0:
946 aliases: ['message-rate-limit-v0']
947 type: dict
948 description: Message rate limit v0.
949 suboptions:
950 create_pdp_request:
951 aliases: ['create-pdp-request']
952 type: int
953 description: Rate limit
954 delete_pdp_request:
955 aliases: ['delete-pdp-request']
956 type: int
957 description: Rate limit
958 echo_request:
959 aliases: ['echo-request']
960 type: int
961 description: Rate limit
962 message_rate_limit_v1:
963 aliases: ['message-rate-limit-v1']
964 type: dict
965 description: Message rate limit v1.
966 suboptions:
967 create_pdp_request:
968 aliases: ['create-pdp-request']
969 type: int
970 description: Rate limit
971 delete_pdp_request:
972 aliases: ['delete-pdp-request']
973 type: int
974 description: Rate limit
975 echo_request:
976 aliases: ['echo-request']
977 type: int
978 description: Rate limit
979 message_rate_limit_v2:
980 aliases: ['message-rate-limit-v2']
981 type: dict
982 description: Message rate limit v2.
983 suboptions:
984 create_session_request:
985 aliases: ['create-session-request']
986 type: int
987 description: Rate limit
988 delete_session_request:
989 aliases: ['delete-session-request']
990 type: int
991 description: Rate limit
992 echo_request:
993 aliases: ['echo-request']
994 type: int
995 description: Rate limit
996 ie_allow_list_v0v1:
997 aliases: ['ie-allow-list-v0v1']
998 type: str
999 description: IE allow list.
1000 ie_allow_list_v2:
1001 aliases: ['ie-allow-list-v2']
1002 type: str
1003 description: IE allow list.
1004 rat_timeout_profile:
1005 aliases: ['rat-timeout-profile']
1006 type: str
1007 description: RAT timeout profile.
1008 message_filter:
1009 aliases: ['message-filter']
1010 type: dict
1011 description: Message filter.
1012 suboptions:
1013 create_aa_pdp:
1014 aliases: ['create-aa-pdp']
1015 type: str
1016 description: Create AA PDP.
1017 choices: ['allow', 'deny']
1018 create_mbms:
1019 aliases: ['create-mbms']
1020 type: str
1021 description: Create MBMS.
1022 choices: ['allow', 'deny']
1023 create_pdp:
1024 aliases: ['create-pdp']
1025 type: str
1026 description: Create PDP.
1027 choices: ['allow', 'deny']
1028 data_record:
1029 aliases: ['data-record']
1030 type: str
1031 description: Data record.
1032 choices: ['allow', 'deny']
1033 delete_aa_pdp:
1034 aliases: ['delete-aa-pdp']
1035 type: str
1036 description: Delete AA PDP.
1037 choices: ['allow', 'deny']
1038 delete_mbms:
1039 aliases: ['delete-mbms']
1040 type: str
1041 description: Delete MBMS.
1042 choices: ['allow', 'deny']
1043 delete_pdp:
1044 aliases: ['delete-pdp']
1045 type: str
1046 description: Delete PDP.
1047 choices: ['allow', 'deny']
1048 echo:
1049 type: str
1050 description: Echo.
1051 choices: ['allow', 'deny']
1052 error_indication:
1053 aliases: ['error-indication']
1054 type: str
1055 description: Error indication.
1056 choices: ['allow', 'deny']
1057 failure_report:
1058 aliases: ['failure-report']
1059 type: str
1060 description: Failure report.
1061 choices: ['allow', 'deny']
1062 fwd_relocation:
1063 aliases: ['fwd-relocation']
1064 type: str
1065 description: Forward relocation.
1066 choices: ['allow', 'deny']
1067 fwd_srns_context:
1068 aliases: ['fwd-srns-context']
1069 type: str
1070 description: Forward SRNS context.
1071 choices: ['allow', 'deny']
1072 gtp_pdu:
1073 aliases: ['gtp-pdu']
1074 type: str
1075 description: GTP PDU.
1076 choices: ['allow', 'deny']
1077 identification:
1078 type: str
1079 description: Identification.
1080 choices: ['allow', 'deny']
1081 mbms_notification:
1082 aliases: ['mbms-notification']
1083 type: str
1084 description: MBMS notification.
1085 choices: ['allow', 'deny']
1086 node_alive:
1087 aliases: ['node-alive']
1088 type: str
1089 description: Node alive.
1090 choices: ['allow', 'deny']
1091 note_ms_present:
1092 aliases: ['note-ms-present']
1093 type: str
1094 description: Note MS present.
1095 choices: ['allow', 'deny']
1096 pdu_notification:
1097 aliases: ['pdu-notification']
1098 type: str
1099 description: PDU notification.
1100 choices: ['allow', 'deny']
1101 ran_info:
1102 aliases: ['ran-info']
1103 type: str
1104 description: Ran info.
1105 choices: ['allow', 'deny']
1106 redirection:
1107 type: str
1108 description: Redirection.
1109 choices: ['allow', 'deny']
1110 relocation_cancel:
1111 aliases: ['relocation-cancel']
1112 type: str
1113 description: Relocation cancel.
1114 choices: ['allow', 'deny']
1115 send_route:
1116 aliases: ['send-route']
1117 type: str
1118 description: Send route.
1119 choices: ['allow', 'deny']
1120 sgsn_context:
1121 aliases: ['sgsn-context']
1122 type: str
1123 description: SGSN context.
1124 choices: ['allow', 'deny']
1125 support_extension:
1126 aliases: ['support-extension']
1127 type: str
1128 description: Support extension.
1129 choices: ['allow', 'deny']
1130 unknown_message_action:
1131 aliases: ['unknown-message-action']
1132 type: str
1133 description: Unknown message action.
1134 choices: ['allow', 'deny']
1135 update_mbms:
1136 aliases: ['update-mbms']
1137 type: str
1138 description: Update MBMS.
1139 choices: ['allow', 'deny']
1140 update_pdp:
1141 aliases: ['update-pdp']
1142 type: str
1143 description: Update PDP.
1144 choices: ['allow', 'deny']
1145 version_not_support:
1146 aliases: ['version-not-support']
1147 type: str
1148 description: Version not supported.
1149 choices: ['allow', 'deny']
1150 gtpv0:
1151 type: str
1152 description: GTPv0 traffic.
1153 choices: ['allow', 'deny']
1154 echo_requires_path_in_use:
1155 aliases: ['echo-requires-path-in-use']
1156 type: str
1157 description: Block GTP Echo Request if no active tunnel over the associated GTP path.
1158 choices: ['disable', 'enable']
1159 '''
1160
1161 EXAMPLES = '''
1162 - name: Example playbook
1163 hosts: fortimanagers
1164 gather_facts: false
1165 connection: httpapi
1166 vars:
1167 ansible_httpapi_use_ssl: true
1168 ansible_httpapi_validate_certs: false
1169 ansible_httpapi_port: 443
1170 tasks:
1171 - name: Configure GTP.
1172 fortinet.fortimanager.fmgr_firewall_gtp:
1173 bypass_validation: false
1174 adom: FortiCarrier # This is FOC-only object, need a FortiCarrier adom
1175 state: present
1176 firewall_gtp:
1177 monitor_mode: disable # <value in [disable, enable, vdom]>
1178 name: "ansible-test"
1179
1180 - name: Gathering fortimanager facts
1181 hosts: fortimanagers
1182 gather_facts: false
1183 connection: httpapi
1184 vars:
1185 ansible_httpapi_use_ssl: true
1186 ansible_httpapi_validate_certs: false
1187 ansible_httpapi_port: 443
1188 tasks:
1189 - name: Retrieve all the GTPs
1190 fortinet.fortimanager.fmgr_fact:
1191 facts:
1192 selector: "firewall_gtp"
1193 params:
1194 adom: "FortiCarrier" # This is FOC-only object, need a FortiCarrier adom
1195 gtp: "your_value"
1196 '''
1197
1198 RETURN = '''
1199 meta:
1200 description: The result of the request.
1201 type: dict
1202 returned: always
1203 contains:
1204 request_url:
1205 description: The full url requested.
1206 returned: always
1207 type: str
1208 sample: /sys/login/user
1209 response_code:
1210 description: The status of api request.
1211 returned: always
1212 type: int
1213 sample: 0
1214 response_data:
1215 description: The api response.
1216 type: list
1217 returned: always
1218 response_message:
1219 description: The descriptive message of the api response.
1220 type: str
1221 returned: always
1222 sample: OK.
1223 system_information:
1224 description: The information of the target system.
1225 type: dict
1226 returned: always
1227 rc:
1228 description: The status the request.
1229 type: int
1230 returned: always
1231 sample: 0
1232 version_check_warning:
1233 description: Warning if the parameters used in the playbook are not supported by the current FortiManager version.
1234 type: list
1235 returned: complex
1236 '''
1237 from ansible.module_utils.basic import AnsibleModule
1238 from ansible.module_utils.connection import Connection
1239 from ansible_collections.fortinet.fortimanager.plugins.module_utils.napi import NAPIManager, check_galaxy_version, check_parameter_bypass
1240 from ansible_collections.fortinet.fortimanager.plugins.module_utils.common import get_module_arg_spec
1241
1242
1243 def main():
1244 urls_list = [
1245 '/pm/config/adom/{adom}/obj/firewall/gtp',
1246 '/pm/config/global/obj/firewall/gtp'
1247 ]
1248 module_arg_spec = {
1249 'adom': {'required': True, 'type': 'str'},
1250 'revision_note': {'type': 'str'},
1251 'firewall_gtp': {
1252 'type': 'dict', 'v_range': [['6.0.0', '']],
1253 'options': {
1254 'addr-notify': {'type': 'str'},
1255 'apn': {
1256 'type': 'list',
1257 'options': {
1258 'action': {'choices': ['allow', 'deny'], 'type': 'str'},
1259 'apnmember': {'type': 'raw'},
1260 'id': {'type': 'int'},
1261 'selection-mode': {'type': 'list', 'choices': ['ms', 'net', 'vrf'], 'elements': 'str'}
1262 },
1263 'elements': 'dict'
1264 },
1265 'apn-filter': {'choices': ['disable', 'enable'], 'type': 'str'},
1266 'authorized-ggsns': {'type': 'str'},
1267 'authorized-sgsns': {'type': 'str'},
1268 'comment': {'type': 'str'},
1269 'context-id': {'type': 'int'},
1270 'control-plane-message-rate-limit': {'type': 'int'},
1271 'default-apn-action': {'choices': ['allow', 'deny'], 'type': 'str'},
1272 'default-imsi-action': {'choices': ['allow', 'deny'], 'type': 'str'},
1273 'default-ip-action': {'choices': ['allow', 'deny'], 'type': 'str'},
1274 'default-noip-action': {'choices': ['allow', 'deny'], 'type': 'str'},
1275 'default-policy-action': {'choices': ['allow', 'deny'], 'type': 'str'},
1276 'denied-log': {'choices': ['disable', 'enable'], 'type': 'str'},
1277 'echo-request-interval': {'type': 'int'},
1278 'extension-log': {'choices': ['disable', 'enable'], 'type': 'str'},
1279 'forwarded-log': {'choices': ['disable', 'enable'], 'type': 'str'},
1280 'global-tunnel-limit': {'type': 'str'},
1281 'gtp-in-gtp': {'choices': ['allow', 'deny'], 'type': 'str'},
1282 'gtpu-denied-log': {'choices': ['disable', 'enable'], 'type': 'str'},
1283 'gtpu-forwarded-log': {'choices': ['disable', 'enable'], 'type': 'str'},
1284 'gtpu-log-freq': {'type': 'int'},
1285 'half-close-timeout': {'type': 'int'},
1286 'half-open-timeout': {'type': 'int'},
1287 'handover-group': {'type': 'str'},
1288 'ie-remove-policy': {
1289 'type': 'list',
1290 'options': {
1291 'id': {'type': 'int'},
1292 'remove-ies': {'type': 'list', 'choices': ['apn-restriction', 'rat-type', 'rai', 'uli', 'imei'], 'elements': 'str'},
1293 'sgsn-addr': {'type': 'str'},
1294 'sgsn-addr6': {'v_range': [['6.4.2', '']], 'type': 'str'}
1295 },
1296 'elements': 'dict'
1297 },
1298 'ie-remover': {'choices': ['disable', 'enable'], 'type': 'str'},
1299 'ie-white-list-v0v1': {'type': 'str'},
1300 'ie-white-list-v2': {'type': 'str'},
1301 'imsi': {
1302 'type': 'list',
1303 'options': {
1304 'action': {'choices': ['allow', 'deny'], 'type': 'str'},
1305 'apnmember': {'type': 'raw'},
1306 'id': {'type': 'int'},
1307 'mcc-mnc': {'type': 'str'},
1308 'msisdn-prefix': {'type': 'str'},
1309 'selection-mode': {'type': 'list', 'choices': ['ms', 'net', 'vrf'], 'elements': 'str'}
1310 },
1311 'elements': 'dict'
1312 },
1313 'imsi-filter': {'choices': ['disable', 'enable'], 'type': 'str'},
1314 'interface-notify': {'type': 'str'},
1315 'invalid-reserved-field': {'choices': ['allow', 'deny'], 'type': 'str'},
1316 'invalid-sgsns-to-log': {'type': 'str'},
1317 'ip-filter': {'choices': ['disable', 'enable'], 'type': 'str'},
1318 'ip-policy': {
1319 'type': 'list',
1320 'options': {
1321 'action': {'choices': ['allow', 'deny'], 'type': 'str'},
1322 'dstaddr': {'type': 'str'},
1323 'id': {'type': 'int'},
1324 'srcaddr': {'type': 'str'},
1325 'dstaddr6': {'v_range': [['6.4.2', '']], 'type': 'str'},
1326 'srcaddr6': {'v_range': [['6.4.2', '']], 'type': 'str'}
1327 },
1328 'elements': 'dict'
1329 },
1330 'log-freq': {'type': 'int'},
1331 'log-gtpu-limit': {'type': 'int'},
1332 'log-imsi-prefix': {'type': 'str'},
1333 'log-msisdn-prefix': {'type': 'str'},
1334 'max-message-length': {'type': 'int'},
1335 'message-filter-v0v1': {'type': 'str'},
1336 'message-filter-v2': {'type': 'str'},
1337 'min-message-length': {'type': 'int'},
1338 'miss-must-ie': {'choices': ['allow', 'deny'], 'type': 'str'},
1339 'monitor-mode': {'choices': ['disable', 'enable', 'vdom'], 'type': 'str'},
1340 'name': {'required': True, 'type': 'str'},
1341 'noip-filter': {'choices': ['disable', 'enable'], 'type': 'str'},
1342 'noip-policy': {
1343 'type': 'list',
1344 'options': {
1345 'action': {'choices': ['allow', 'deny'], 'type': 'str'},
1346 'end': {'type': 'int'},
1347 'id': {'type': 'int'},
1348 'start': {'type': 'int'},
1349 'type': {'choices': ['etsi', 'ietf'], 'type': 'str'}
1350 },
1351 'elements': 'dict'
1352 },
1353 'out-of-state-ie': {'choices': ['allow', 'deny'], 'type': 'str'},
1354 'out-of-state-message': {'choices': ['allow', 'deny'], 'type': 'str'},
1355 'per-apn-shaper': {
1356 'type': 'list',
1357 'options': {'apn': {'type': 'str'}, 'id': {'type': 'int'}, 'rate-limit': {'type': 'int'}, 'version': {'type': 'int'}},
1358 'elements': 'dict'
1359 },
1360 'policy': {
1361 'type': 'list',
1362 'options': {
1363 'action': {'choices': ['allow', 'deny'], 'type': 'str'},
1364 'apn-sel-mode': {'type': 'list', 'choices': ['ms', 'net', 'vrf'], 'elements': 'str'},
1365 'apnmember': {'type': 'raw'},
1366 'id': {'type': 'int'},
1367 'imei': {'type': 'str'},
1368 'imsi': {'v_range': [['6.0.0', '7.2.1']], 'type': 'str'},
1369 'max-apn-restriction': {'choices': ['all', 'public-1', 'public-2', 'private-1', 'private-2'], 'type': 'str'},
1370 'messages': {'type': 'list', 'choices': ['create-req', 'create-res', 'update-req', 'update-res'], 'elements': 'str'},
1371 'msisdn': {'v_range': [['6.0.0', '7.2.1']], 'type': 'str'},
1372 'rai': {'type': 'str'},
1373 'rat-type': {
1374 'type': 'list',
1375 'choices': ['any', 'utran', 'geran', 'wlan', 'gan', 'hspa', 'eutran', 'virtual', 'nbiot'],
1376 'elements': 'str'
1377 },
1378 'uli': {'type': 'str'},
1379 'imsi-prefix': {'v_range': [['6.2.0', '']], 'type': 'str'},
1380 'msisdn-prefix': {'v_range': [['6.2.0', '']], 'type': 'str'},
1381 'apn': {'v_range': [['6.2.0', '6.2.13']], 'type': 'str'}
1382 },
1383 'elements': 'dict'
1384 },
1385 'policy-filter': {'choices': ['disable', 'enable'], 'type': 'str'},
1386 'port-notify': {'type': 'int'},
1387 'rate-limit-mode': {'choices': ['per-profile', 'per-stream', 'per-apn'], 'type': 'str'},
1388 'rate-limited-log': {'choices': ['disable', 'enable'], 'type': 'str'},
1389 'rate-sampling-interval': {'type': 'int'},
1390 'remove-if-echo-expires': {'choices': ['disable', 'enable'], 'type': 'str'},
1391 'remove-if-recovery-differ': {'choices': ['disable', 'enable'], 'type': 'str'},
1392 'reserved-ie': {'choices': ['allow', 'deny'], 'type': 'str'},
1393 'send-delete-when-timeout': {'choices': ['disable', 'enable'], 'type': 'str'},
1394 'send-delete-when-timeout-v2': {'choices': ['disable', 'enable'], 'type': 'str'},
1395 'spoof-src-addr': {'choices': ['allow', 'deny'], 'type': 'str'},
1396 'state-invalid-log': {'choices': ['disable', 'enable'], 'type': 'str'},
1397 'traffic-count-log': {'choices': ['disable', 'enable'], 'type': 'str'},
1398 'tunnel-limit': {'type': 'int'},
1399 'tunnel-limit-log': {'choices': ['disable', 'enable'], 'type': 'str'},
1400 'tunnel-timeout': {'type': 'int'},
1401 'unknown-version-action': {'choices': ['allow', 'deny'], 'type': 'str'},
1402 'user-plane-message-rate-limit': {'type': 'int'},
1403 'warning-threshold': {'type': 'int'},
1404 'policy-v2': {
1405 'v_range': [['6.2.1', '']],
1406 'type': 'list',
1407 'options': {
1408 'action': {'v_range': [['6.2.1', '']], 'choices': ['deny', 'allow'], 'type': 'str'},
1409 'apn-sel-mode': {'v_range': [['6.2.1', '']], 'type': 'list', 'choices': ['ms', 'net', 'vrf'], 'elements': 'str'},
1410 'apnmember': {'v_range': [['6.2.1', '']], 'type': 'raw'},
1411 'id': {'v_range': [['6.2.1', '']], 'type': 'int'},
1412 'imsi-prefix': {'v_range': [['6.2.1', '']], 'type': 'str'},
1413 'max-apn-restriction': {
1414 'v_range': [['6.2.1', '']],
1415 'choices': ['all', 'public-1', 'public-2', 'private-1', 'private-2'],
1416 'type': 'str'
1417 },
1418 'mei': {'v_range': [['6.2.1', '']], 'type': 'str'},
1419 'messages': {
1420 'v_range': [['6.2.1', '']],
1421 'type': 'list',
1422 'choices': ['create-ses-req', 'create-ses-res', 'modify-bearer-req', 'modify-bearer-res'],
1423 'elements': 'str'
1424 },
1425 'msisdn-prefix': {'v_range': [['6.2.1', '']], 'type': 'str'},
1426 'rat-type': {
1427 'v_range': [['6.2.1', '']],
1428 'type': 'list',
1429 'choices': ['any', 'utran', 'geran', 'wlan', 'gan', 'hspa', 'eutran', 'virtual', 'nbiot', 'ltem', 'nr'],
1430 'elements': 'str'
1431 },
1432 'uli': {'v_range': [['6.2.1', '']], 'type': 'raw'}
1433 },
1434 'elements': 'dict'
1435 },
1436 'sub-second-interval': {'v_range': [['6.2.2', '']], 'choices': ['0.1', '0.25', '0.5'], 'type': 'str'},
1437 'sub-second-sampling': {'v_range': [['6.2.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1438 'authorized-ggsns6': {'v_range': [['6.4.2', '']], 'type': 'str'},
1439 'authorized-sgsns6': {'v_range': [['6.4.2', '']], 'type': 'str'},
1440 'handover-group6': {'v_range': [['6.4.2', '']], 'type': 'str'},
1441 'invalid-sgsns6-to-log': {'v_range': [['6.4.2', '']], 'type': 'str'},
1442 'ie-validation': {
1443 'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']],
1444 'type': 'dict',
1445 'options': {
1446 'apn-restriction': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1447 'charging-ID': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1448 'charging-gateway-addr': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1449 'end-user-addr': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1450 'gsn-addr': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1451 'imei': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1452 'imsi': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1453 'mm-context': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1454 'ms-tzone': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1455 'ms-validated': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1456 'msisdn': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1457 'nsapi': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1458 'pdp-context': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1459 'qos-profile': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1460 'rai': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1461 'rat-type': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1462 'reordering-required': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1463 'selection-mode': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1464 'uli': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'}
1465 }
1466 },
1467 'message-rate-limit': {
1468 'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']],
1469 'type': 'dict',
1470 'options': {
1471 'create-aa-pdp-request': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1472 'create-aa-pdp-response': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1473 'create-mbms-request': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1474 'create-mbms-response': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1475 'create-pdp-request': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1476 'create-pdp-response': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1477 'delete-aa-pdp-request': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1478 'delete-aa-pdp-response': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1479 'delete-mbms-request': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1480 'delete-mbms-response': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1481 'delete-pdp-request': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1482 'delete-pdp-response': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1483 'echo-reponse': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1484 'echo-request': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1485 'error-indication': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1486 'failure-report-request': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1487 'failure-report-response': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1488 'fwd-reloc-complete-ack': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1489 'fwd-relocation-complete': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1490 'fwd-relocation-request': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1491 'fwd-relocation-response': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1492 'fwd-srns-context': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1493 'fwd-srns-context-ack': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1494 'g-pdu': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1495 'identification-request': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1496 'identification-response': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1497 'mbms-de-reg-request': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1498 'mbms-de-reg-response': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1499 'mbms-notify-rej-request': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1500 'mbms-notify-rej-response': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1501 'mbms-notify-request': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1502 'mbms-notify-response': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1503 'mbms-reg-request': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1504 'mbms-reg-response': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1505 'mbms-ses-start-request': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1506 'mbms-ses-start-response': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1507 'mbms-ses-stop-request': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1508 'mbms-ses-stop-response': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1509 'note-ms-request': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1510 'note-ms-response': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1511 'pdu-notify-rej-request': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1512 'pdu-notify-rej-response': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1513 'pdu-notify-request': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1514 'pdu-notify-response': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1515 'ran-info': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1516 'relocation-cancel-request': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1517 'relocation-cancel-response': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1518 'send-route-request': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1519 'send-route-response': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1520 'sgsn-context-ack': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1521 'sgsn-context-request': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1522 'sgsn-context-response': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1523 'support-ext-hdr-notify': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1524 'update-mbms-request': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1525 'update-mbms-response': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1526 'update-pdp-request': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1527 'update-pdp-response': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1528 'version-not-support': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1529 'echo-response': {'v_range': [['7.4.3', '']], 'type': 'int'}
1530 }
1531 },
1532 'message-rate-limit-v0': {
1533 'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']],
1534 'type': 'dict',
1535 'options': {
1536 'create-pdp-request': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1537 'delete-pdp-request': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1538 'echo-request': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'}
1539 }
1540 },
1541 'message-rate-limit-v1': {
1542 'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']],
1543 'type': 'dict',
1544 'options': {
1545 'create-pdp-request': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1546 'delete-pdp-request': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1547 'echo-request': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'}
1548 }
1549 },
1550 'message-rate-limit-v2': {
1551 'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']],
1552 'type': 'dict',
1553 'options': {
1554 'create-session-request': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1555 'delete-session-request': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1556 'echo-request': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'}
1557 }
1558 },
1559 'ie-allow-list-v0v1': {'v_range': [['7.0.0', '']], 'type': 'str'},
1560 'ie-allow-list-v2': {'v_range': [['7.0.0', '']], 'type': 'str'},
1561 'rat-timeout-profile': {'v_range': [['7.0.1', '']], 'type': 'str'},
1562 'message-filter': {
1563 'v_range': [['6.2.8', '6.2.13']],
1564 'type': 'dict',
1565 'options': {
1566 'create-aa-pdp': {'v_range': [['6.2.8', '6.2.13']], 'choices': ['allow', 'deny'], 'type': 'str'},
1567 'create-mbms': {'v_range': [['6.2.8', '6.2.13']], 'choices': ['allow', 'deny'], 'type': 'str'},
1568 'create-pdp': {'v_range': [['6.2.8', '6.2.13']], 'choices': ['allow', 'deny'], 'type': 'str'},
1569 'data-record': {'v_range': [['6.2.8', '6.2.13']], 'choices': ['allow', 'deny'], 'type': 'str'},
1570 'delete-aa-pdp': {'v_range': [['6.2.8', '6.2.13']], 'choices': ['allow', 'deny'], 'type': 'str'},
1571 'delete-mbms': {'v_range': [['6.2.8', '6.2.13']], 'choices': ['allow', 'deny'], 'type': 'str'},
1572 'delete-pdp': {'v_range': [['6.2.8', '6.2.13']], 'choices': ['allow', 'deny'], 'type': 'str'},
1573 'echo': {'v_range': [['6.2.8', '6.2.13']], 'choices': ['allow', 'deny'], 'type': 'str'},
1574 'error-indication': {'v_range': [['6.2.8', '6.2.13']], 'choices': ['allow', 'deny'], 'type': 'str'},
1575 'failure-report': {'v_range': [['6.2.8', '6.2.13']], 'choices': ['allow', 'deny'], 'type': 'str'},
1576 'fwd-relocation': {'v_range': [['6.2.8', '6.2.13']], 'choices': ['allow', 'deny'], 'type': 'str'},
1577 'fwd-srns-context': {'v_range': [['6.2.8', '6.2.13']], 'choices': ['allow', 'deny'], 'type': 'str'},
1578 'gtp-pdu': {'v_range': [['6.2.8', '6.2.13']], 'choices': ['allow', 'deny'], 'type': 'str'},
1579 'identification': {'v_range': [['6.2.8', '6.2.13']], 'choices': ['allow', 'deny'], 'type': 'str'},
1580 'mbms-notification': {'v_range': [['6.2.8', '6.2.13']], 'choices': ['allow', 'deny'], 'type': 'str'},
1581 'node-alive': {'v_range': [['6.2.8', '6.2.13']], 'choices': ['allow', 'deny'], 'type': 'str'},
1582 'note-ms-present': {'v_range': [['6.2.8', '6.2.13']], 'choices': ['allow', 'deny'], 'type': 'str'},
1583 'pdu-notification': {'v_range': [['6.2.8', '6.2.13']], 'choices': ['allow', 'deny'], 'type': 'str'},
1584 'ran-info': {'v_range': [['6.2.8', '6.2.13']], 'choices': ['allow', 'deny'], 'type': 'str'},
1585 'redirection': {'v_range': [['6.2.8', '6.2.13']], 'choices': ['allow', 'deny'], 'type': 'str'},
1586 'relocation-cancel': {'v_range': [['6.2.8', '6.2.13']], 'choices': ['allow', 'deny'], 'type': 'str'},
1587 'send-route': {'v_range': [['6.2.8', '6.2.13']], 'choices': ['allow', 'deny'], 'type': 'str'},
1588 'sgsn-context': {'v_range': [['6.2.8', '6.2.13']], 'choices': ['allow', 'deny'], 'type': 'str'},
1589 'support-extension': {'v_range': [['6.2.8', '6.2.13']], 'choices': ['allow', 'deny'], 'type': 'str'},
1590 'unknown-message-action': {'v_range': [['6.2.8', '6.2.13']], 'choices': ['allow', 'deny'], 'type': 'str'},
1591 'update-mbms': {'v_range': [['6.2.8', '6.2.13']], 'choices': ['allow', 'deny'], 'type': 'str'},
1592 'update-pdp': {'v_range': [['6.2.8', '6.2.13']], 'choices': ['allow', 'deny'], 'type': 'str'},
1593 'version-not-support': {'v_range': [['6.2.8', '6.2.13']], 'choices': ['allow', 'deny'], 'type': 'str'}
1594 }
1595 },
1596 'gtpv0': {'v_range': [['7.6.0', '']], 'choices': ['allow', 'deny'], 'type': 'str'},
1597 'echo-requires-path-in-use': {'v_range': [['7.6.3', '']], 'choices': ['disable', 'enable'], 'type': 'str'}
1598 }
1599 }
1600 }
1601
1602 module_option_spec = get_module_arg_spec('full crud')
1603 module_arg_spec.update(module_option_spec)
1604 check_galaxy_version(module_arg_spec)
1605 module = AnsibleModule(argument_spec=check_parameter_bypass(module_arg_spec, 'firewall_gtp'),
1606 supports_check_mode=True)
1607 if not module._socket_path:
1608 module.fail_json(msg='MUST RUN IN HTTPAPI MODE')
1609 connection = Connection(module._socket_path)
1610 fmgr = NAPIManager('full crud', module_arg_spec, urls_list,
1611 'name', 'data', module, connection)
1612 fmgr.process_crud()
1613 module.exit_json(meta=module.params)
1614
1615
1616 if __name__ == '__main__':
1617 main()