Debian Codegraph @

ansible_collections/fortinet/fortimanager/plugins/modules/fmgr_system_npu_nputcam.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_system_npu_nputcam
15 short_description: Configure NPU TCAM policies.
16 version_added: "2.4.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 system_npu_nputcam:
29 description: The top level parameters set.
30 required: false
31 type: dict
32 suboptions:
33 data:
34 type: dict
35 description: Data.
36 suboptions:
37 df:
38 type: str
39 description: Tcam data ip flag df.
40 choices: ['disable', 'enable']
41 dstip:
42 type: str
43 description: Tcam data dst ipv4 address.
44 dstipv6:
45 type: str
46 description: Tcam data dst ipv6 address.
47 dstmac:
48 type: str
49 description: Tcam data dst macaddr.
50 dstport:
51 type: int
52 description: Tcam data L4 dst port.
53 ethertype:
54 type: str
55 description: Tcam data ethertype.
56 ext_tag:
57 aliases: ['ext-tag']
58 type: str
59 description: Tcam data extension tag.
60 choices: ['disable', 'enable']
61 frag_off:
62 aliases: ['frag-off']
63 type: int
64 description: Tcam data ip flag fragment offset.
65 gen_buf_cnt:
66 aliases: ['gen-buf-cnt']
67 type: int
68 description: Tcam data gen info buffer count.
69 gen_iv:
70 aliases: ['gen-iv']
71 type: str
72 description: Tcam data gen info iv.
73 choices: ['invalid', 'valid']
74 gen_l3_flags:
75 aliases: ['gen-l3-flags']
76 type: int
77 description: Tcam data gen info L3 flags.
78 gen_l4_flags:
79 aliases: ['gen-l4-flags']
80 type: int
81 description: Tcam data gen info L4 flags.
82 gen_pkt_ctrl:
83 aliases: ['gen-pkt-ctrl']
84 type: int
85 description: Tcam data gen info packet control.
86 gen_pri:
87 aliases: ['gen-pri']
88 type: int
89 description: Tcam data gen info priority.
90 gen_pri_v:
91 aliases: ['gen-pri-v']
92 type: str
93 description: Tcam data gen info priority valid.
94 choices: ['invalid', 'valid']
95 gen_tv:
96 aliases: ['gen-tv']
97 type: str
98 description: Tcam data gen info tv.
99 choices: ['invalid', 'valid']
100 ihl:
101 type: int
102 description: Tcam data ipv4 IHL.
103 ip4_id:
104 aliases: ['ip4-id']
105 type: int
106 description: Tcam data ipv4 id.
107 ip6_fl:
108 aliases: ['ip6-fl']
109 type: int
110 description: Tcam data ipv6 flow label.
111 ipver:
112 type: int
113 description: Tcam data ip header version.
114 l4_wd10:
115 aliases: ['l4-wd10']
116 type: int
117 description: Tcam data L4 word10.
118 l4_wd11:
119 aliases: ['l4-wd11']
120 type: int
121 description: Tcam data L4 word11.
122 l4_wd8:
123 aliases: ['l4-wd8']
124 type: int
125 description: Tcam data L4 word8.
126 l4_wd9:
127 aliases: ['l4-wd9']
128 type: int
129 description: Tcam data L4 word9.
130 mf:
131 type: str
132 description: Tcam data ip flag mf.
133 choices: ['disable', 'enable']
134 protocol:
135 type: int
136 description: Tcam data ip protocol.
137 slink:
138 type: int
139 description: Tcam data sublink.
140 smac_change:
141 aliases: ['smac-change']
142 type: str
143 description: Tcam data source MAC change.
144 choices: ['disable', 'enable']
145 sp:
146 type: int
147 description: Tcam data source port.
148 src_cfi:
149 aliases: ['src-cfi']
150 type: str
151 description: Tcam data source cfi.
152 choices: ['disable', 'enable']
153 src_prio:
154 aliases: ['src-prio']
155 type: int
156 description: Tcam data source priority.
157 src_updt:
158 aliases: ['src-updt']
159 type: str
160 description: Tcam data source update.
161 choices: ['disable', 'enable']
162 srcip:
163 type: str
164 description: Tcam data src ipv4 address.
165 srcipv6:
166 type: str
167 description: Tcam data src ipv6 address.
168 srcmac:
169 type: str
170 description: Tcam data src macaddr.
171 srcport:
172 type: int
173 description: Tcam data L4 src port.
174 svid:
175 type: int
176 description: Tcam data source vid.
177 tcp_ack:
178 aliases: ['tcp-ack']
179 type: str
180 description: Tcam data tcp flag ack.
181 choices: ['disable', 'enable']
182 tcp_cwr:
183 aliases: ['tcp-cwr']
184 type: str
185 description: Tcam data tcp flag cwr.
186 choices: ['disable', 'enable']
187 tcp_ece:
188 aliases: ['tcp-ece']
189 type: str
190 description: Tcam data tcp flag ece.
191 choices: ['disable', 'enable']
192 tcp_fin:
193 aliases: ['tcp-fin']
194 type: str
195 description: Tcam data tcp flag fin.
196 choices: ['disable', 'enable']
197 tcp_push:
198 aliases: ['tcp-push']
199 type: str
200 description: Tcam data tcp flag push.
201 choices: ['disable', 'enable']
202 tcp_rst:
203 aliases: ['tcp-rst']
204 type: str
205 description: Tcam data tcp flag rst.
206 choices: ['disable', 'enable']
207 tcp_syn:
208 aliases: ['tcp-syn']
209 type: str
210 description: Tcam data tcp flag syn.
211 choices: ['disable', 'enable']
212 tcp_urg:
213 aliases: ['tcp-urg']
214 type: str
215 description: Tcam data tcp flag urg.
216 choices: ['disable', 'enable']
217 tgt_cfi:
218 aliases: ['tgt-cfi']
219 type: str
220 description: Tcam data target cfi.
221 choices: ['disable', 'enable']
222 tgt_prio:
223 aliases: ['tgt-prio']
224 type: int
225 description: Tcam data target priority.
226 tgt_updt:
227 aliases: ['tgt-updt']
228 type: str
229 description: Tcam data target port update.
230 choices: ['disable', 'enable']
231 tgt_v:
232 aliases: ['tgt-v']
233 type: str
234 description: Tcam data target valid.
235 choices: ['invalid', 'valid']
236 tos:
237 type: int
238 description: Tcam data ip tos.
239 tp:
240 type: int
241 description: Tcam data target port.
242 ttl:
243 type: int
244 description: Tcam data ip ttl.
245 tvid:
246 type: int
247 description: Tcam data target vid.
248 vdid:
249 type: int
250 description: Tcam data vdom id.
251 dbg_dump:
252 aliases: ['dbg-dump']
253 type: int
254 description: Debug driver dump data/mask pdq.
255 mask:
256 type: dict
257 description: Mask.
258 suboptions:
259 df:
260 type: str
261 description: Tcam mask ip flag df.
262 choices: ['disable', 'enable']
263 dstip:
264 type: str
265 description: Tcam mask dst ipv4 address.
266 dstipv6:
267 type: str
268 description: Tcam mask dst ipv6 address.
269 dstmac:
270 type: str
271 description: Tcam mask dst macaddr.
272 dstport:
273 type: int
274 description: Tcam mask L4 dst port.
275 ethertype:
276 type: str
277 description: Tcam mask ethertype.
278 ext_tag:
279 aliases: ['ext-tag']
280 type: str
281 description: Tcam mask extension tag.
282 choices: ['disable', 'enable']
283 frag_off:
284 aliases: ['frag-off']
285 type: int
286 description: Tcam data ip flag fragment offset.
287 gen_buf_cnt:
288 aliases: ['gen-buf-cnt']
289 type: int
290 description: Tcam mask gen info buffer count.
291 gen_iv:
292 aliases: ['gen-iv']
293 type: str
294 description: Tcam mask gen info iv.
295 choices: ['invalid', 'valid']
296 gen_l3_flags:
297 aliases: ['gen-l3-flags']
298 type: int
299 description: Tcam mask gen info L3 flags.
300 gen_l4_flags:
301 aliases: ['gen-l4-flags']
302 type: int
303 description: Tcam mask gen info L4 flags.
304 gen_pkt_ctrl:
305 aliases: ['gen-pkt-ctrl']
306 type: int
307 description: Tcam mask gen info packet control.
308 gen_pri:
309 aliases: ['gen-pri']
310 type: int
311 description: Tcam mask gen info priority.
312 gen_pri_v:
313 aliases: ['gen-pri-v']
314 type: str
315 description: Tcam mask gen info priority valid.
316 choices: ['invalid', 'valid']
317 gen_tv:
318 aliases: ['gen-tv']
319 type: str
320 description: Tcam mask gen info tv.
321 choices: ['invalid', 'valid']
322 ihl:
323 type: int
324 description: Tcam mask ipv4 IHL.
325 ip4_id:
326 aliases: ['ip4-id']
327 type: int
328 description: Tcam mask ipv4 id.
329 ip6_fl:
330 aliases: ['ip6-fl']
331 type: int
332 description: Tcam mask ipv6 flow label.
333 ipver:
334 type: int
335 description: Tcam mask ip header version.
336 l4_wd10:
337 aliases: ['l4-wd10']
338 type: int
339 description: Tcam mask L4 word10.
340 l4_wd11:
341 aliases: ['l4-wd11']
342 type: int
343 description: Tcam mask L4 word11.
344 l4_wd8:
345 aliases: ['l4-wd8']
346 type: int
347 description: Tcam mask L4 word8.
348 l4_wd9:
349 aliases: ['l4-wd9']
350 type: int
351 description: Tcam mask L4 word9.
352 mf:
353 type: str
354 description: Tcam mask ip flag mf.
355 choices: ['disable', 'enable']
356 protocol:
357 type: int
358 description: Tcam mask ip protocol.
359 slink:
360 type: int
361 description: Tcam mask sublink.
362 smac_change:
363 aliases: ['smac-change']
364 type: str
365 description: Tcam mask source MAC change.
366 choices: ['disable', 'enable']
367 sp:
368 type: int
369 description: Tcam mask source port.
370 src_cfi:
371 aliases: ['src-cfi']
372 type: str
373 description: Tcam mask source cfi.
374 choices: ['disable', 'enable']
375 src_prio:
376 aliases: ['src-prio']
377 type: int
378 description: Tcam mask source priority.
379 src_updt:
380 aliases: ['src-updt']
381 type: str
382 description: Tcam mask source update.
383 choices: ['disable', 'enable']
384 srcip:
385 type: str
386 description: Tcam mask src ipv4 address.
387 srcipv6:
388 type: str
389 description: Tcam mask src ipv6 address.
390 srcmac:
391 type: str
392 description: Tcam mask src macaddr.
393 srcport:
394 type: int
395 description: Tcam mask L4 src port.
396 svid:
397 type: int
398 description: Tcam mask source vid.
399 tcp_ack:
400 aliases: ['tcp-ack']
401 type: str
402 description: Tcam mask tcp flag ack.
403 choices: ['disable', 'enable']
404 tcp_cwr:
405 aliases: ['tcp-cwr']
406 type: str
407 description: Tcam mask tcp flag cwr.
408 choices: ['disable', 'enable']
409 tcp_ece:
410 aliases: ['tcp-ece']
411 type: str
412 description: Tcam mask tcp flag ece.
413 choices: ['disable', 'enable']
414 tcp_fin:
415 aliases: ['tcp-fin']
416 type: str
417 description: Tcam mask tcp flag fin.
418 choices: ['disable', 'enable']
419 tcp_push:
420 aliases: ['tcp-push']
421 type: str
422 description: Tcam mask tcp flag push.
423 choices: ['disable', 'enable']
424 tcp_rst:
425 aliases: ['tcp-rst']
426 type: str
427 description: Tcam mask tcp flag rst.
428 choices: ['disable', 'enable']
429 tcp_syn:
430 aliases: ['tcp-syn']
431 type: str
432 description: Tcam mask tcp flag syn.
433 choices: ['disable', 'enable']
434 tcp_urg:
435 aliases: ['tcp-urg']
436 type: str
437 description: Tcam mask tcp flag urg.
438 choices: ['disable', 'enable']
439 tgt_cfi:
440 aliases: ['tgt-cfi']
441 type: str
442 description: Tcam mask target cfi.
443 choices: ['disable', 'enable']
444 tgt_prio:
445 aliases: ['tgt-prio']
446 type: int
447 description: Tcam mask target priority.
448 tgt_updt:
449 aliases: ['tgt-updt']
450 type: str
451 description: Tcam mask target port update.
452 choices: ['disable', 'enable']
453 tgt_v:
454 aliases: ['tgt-v']
455 type: str
456 description: Tcam mask target valid.
457 choices: ['invalid', 'valid']
458 tos:
459 type: int
460 description: Tcam mask ip tos.
461 tp:
462 type: int
463 description: Tcam mask target port.
464 ttl:
465 type: int
466 description: Tcam mask ip ttl.
467 tvid:
468 type: int
469 description: Tcam mask target vid.
470 vdid:
471 type: int
472 description: Tcam mask vdom id.
473 mir_act:
474 aliases: ['mir-act']
475 type: dict
476 description: Mir act.
477 suboptions:
478 vlif:
479 type: int
480 description: Tcam mirror action vlif.
481 name:
482 type: str
483 description: NPU TCAM policies name.
484 required: true
485 oid:
486 type: int
487 description: NPU TCAM OID.
488 pri_act:
489 aliases: ['pri-act']
490 type: dict
491 description: Pri act.
492 suboptions:
493 priority:
494 type: int
495 description: Tcam priority action priority.
496 weight:
497 type: int
498 description: Tcam priority action weight.
499 sact:
500 type: dict
501 description: Sact.
502 suboptions:
503 act:
504 type: int
505 description: Tcam sact act.
506 act_v:
507 aliases: ['act-v']
508 type: str
509 description: Enable to set sact act.
510 choices: ['disable', 'enable']
511 bmproc:
512 type: int
513 description: Tcam sact bmproc.
514 bmproc_v:
515 aliases: ['bmproc-v']
516 type: str
517 description: Enable to set sact bmproc.
518 choices: ['disable', 'enable']
519 df_lif:
520 aliases: ['df-lif']
521 type: int
522 description: Tcam sact df-lif.
523 df_lif_v:
524 aliases: ['df-lif-v']
525 type: str
526 description: Enable to set sact df-lif.
527 choices: ['disable', 'enable']
528 dfr:
529 type: int
530 description: Tcam sact dfr.
531 dfr_v:
532 aliases: ['dfr-v']
533 type: str
534 description: Enable to set sact dfr.
535 choices: ['disable', 'enable']
536 dmac_skip:
537 aliases: ['dmac-skip']
538 type: int
539 description: Tcam sact dmac-skip.
540 dmac_skip_v:
541 aliases: ['dmac-skip-v']
542 type: str
543 description: Enable to set sact dmac-skip.
544 choices: ['disable', 'enable']
545 dosen:
546 type: int
547 description: Tcam sact dosen.
548 dosen_v:
549 aliases: ['dosen-v']
550 type: str
551 description: Enable to set sact dosen.
552 choices: ['disable', 'enable']
553 espff_proc:
554 aliases: ['espff-proc']
555 type: int
556 description: Tcam sact espff-proc.
557 espff_proc_v:
558 aliases: ['espff-proc-v']
559 type: str
560 description: Enable to set sact espff-proc.
561 choices: ['disable', 'enable']
562 etype_pid:
563 aliases: ['etype-pid']
564 type: int
565 description: Tcam sact etype-pid.
566 etype_pid_v:
567 aliases: ['etype-pid-v']
568 type: str
569 description: Enable to set sact etype-pid.
570 choices: ['disable', 'enable']
571 frag_proc:
572 aliases: ['frag-proc']
573 type: int
574 description: Tcam sact frag-proc.
575 frag_proc_v:
576 aliases: ['frag-proc-v']
577 type: str
578 description: Enable to set sact frag-proc.
579 choices: ['disable', 'enable']
580 fwd:
581 type: int
582 description: Tcam sact fwd.
583 fwd_lif:
584 aliases: ['fwd-lif']
585 type: int
586 description: Tcam sact fwd-lif.
587 fwd_lif_v:
588 aliases: ['fwd-lif-v']
589 type: str
590 description: Enable to set sact fwd-lif.
591 choices: ['disable', 'enable']
592 fwd_tvid:
593 aliases: ['fwd-tvid']
594 type: int
595 description: Tcam sact fwd-tvid.
596 fwd_tvid_v:
597 aliases: ['fwd-tvid-v']
598 type: str
599 description: Enable to set sact fwd-vid.
600 choices: ['disable', 'enable']
601 fwd_v:
602 aliases: ['fwd-v']
603 type: str
604 description: Enable to set sact fwd.
605 choices: ['disable', 'enable']
606 icpen:
607 type: int
608 description: Tcam sact icpen.
609 icpen_v:
610 aliases: ['icpen-v']
611 type: str
612 description: Enable to set sact icpen.
613 choices: ['disable', 'enable']
614 igmp_mld_snp:
615 aliases: ['igmp-mld-snp']
616 type: int
617 description: Tcam sact igmp-mld-snp.
618 igmp_mld_snp_v:
619 aliases: ['igmp-mld-snp-v']
620 type: str
621 description: Enable to set sact igmp-mld-snp.
622 choices: ['disable', 'enable']
623 learn:
624 type: int
625 description: Tcam sact learn.
626 learn_v:
627 aliases: ['learn-v']
628 type: str
629 description: Enable to set sact learn.
630 choices: ['disable', 'enable']
631 m_srh_ctrl:
632 aliases: ['m-srh-ctrl']
633 type: int
634 description: Tcam sact m-srh-ctrl.
635 m_srh_ctrl_v:
636 aliases: ['m-srh-ctrl-v']
637 type: str
638 description: Enable to set sact m-srh-ctrl.
639 choices: ['disable', 'enable']
640 mac_id:
641 aliases: ['mac-id']
642 type: int
643 description: Tcam sact mac-id.
644 mac_id_v:
645 aliases: ['mac-id-v']
646 type: str
647 description: Enable to set sact mac-id.
648 choices: ['disable', 'enable']
649 mss:
650 type: int
651 description: Tcam sact mss.
652 mss_v:
653 aliases: ['mss-v']
654 type: str
655 description: Enable to set sact mss.
656 choices: ['disable', 'enable']
657 pleen:
658 type: int
659 description: Tcam sact pleen.
660 pleen_v:
661 aliases: ['pleen-v']
662 type: str
663 description: Enable to set sact pleen.
664 choices: ['disable', 'enable']
665 prio_pid:
666 aliases: ['prio-pid']
667 type: int
668 description: Tcam sact prio-pid.
669 prio_pid_v:
670 aliases: ['prio-pid-v']
671 type: str
672 description: Enable to set sact prio-pid.
673 choices: ['disable', 'enable']
674 promis:
675 type: int
676 description: Tcam sact promis.
677 promis_v:
678 aliases: ['promis-v']
679 type: str
680 description: Enable to set sact promis.
681 choices: ['disable', 'enable']
682 rfsh:
683 type: int
684 description: Tcam sact rfsh.
685 rfsh_v:
686 aliases: ['rfsh-v']
687 type: str
688 description: Enable to set sact rfsh.
689 choices: ['disable', 'enable']
690 smac_skip:
691 aliases: ['smac-skip']
692 type: int
693 description: Tcam sact smac-skip.
694 smac_skip_v:
695 aliases: ['smac-skip-v']
696 type: str
697 description: Enable to set sact smac-skip.
698 choices: ['disable', 'enable']
699 tp_smchk_v:
700 aliases: ['tp-smchk-v']
701 type: str
702 description: Enable to set sact tp mode.
703 choices: ['disable', 'enable']
704 tp_smchk:
705 type: int
706 description: Tcam sact tp mode.
707 tpe_id:
708 aliases: ['tpe-id']
709 type: int
710 description: Tcam sact tpe-id.
711 tpe_id_v:
712 aliases: ['tpe-id-v']
713 type: str
714 description: Enable to set sact tpe-id.
715 choices: ['disable', 'enable']
716 vdm:
717 type: int
718 description: Tcam sact vdm.
719 vdm_v:
720 aliases: ['vdm-v']
721 type: str
722 description: Enable to set sact vdm.
723 choices: ['disable', 'enable']
724 vdom_id:
725 aliases: ['vdom-id']
726 type: int
727 description: Tcam sact vdom-id.
728 vdom_id_v:
729 aliases: ['vdom-id-v']
730 type: str
731 description: Enable to set sact vdom-id.
732 choices: ['disable', 'enable']
733 x_mode:
734 aliases: ['x-mode']
735 type: int
736 description: Tcam sact x-mode.
737 x_mode_v:
738 aliases: ['x-mode-v']
739 type: str
740 description: Enable to set sact x-mode.
741 choices: ['disable', 'enable']
742 tact:
743 type: dict
744 description: Tact.
745 suboptions:
746 act:
747 type: int
748 description: Tcam tact act.
749 act_v:
750 aliases: ['act-v']
751 type: str
752 description: Enable to set tact act.
753 choices: ['disable', 'enable']
754 fmtuv4_s:
755 aliases: ['fmtuv4-s']
756 type: int
757 description: Tcam tact fmtuv4-s.
758 fmtuv4_s_v:
759 aliases: ['fmtuv4-s-v']
760 type: str
761 description: Enable to set tact fmtuv4-s.
762 choices: ['disable', 'enable']
763 fmtuv6_s:
764 aliases: ['fmtuv6-s']
765 type: int
766 description: Tcam tact fmtuv6-s.
767 fmtuv6_s_v:
768 aliases: ['fmtuv6-s-v']
769 type: str
770 description: Enable to set tact fmtuv6-s.
771 choices: ['disable', 'enable']
772 lnkid:
773 type: int
774 description: Tcam tact lnkid.
775 lnkid_v:
776 aliases: ['lnkid-v']
777 type: str
778 description: Enable to set tact lnkid.
779 choices: ['disable', 'enable']
780 mac_id:
781 aliases: ['mac-id']
782 type: int
783 description: Tcam tact mac-id.
784 mac_id_v:
785 aliases: ['mac-id-v']
786 type: str
787 description: Enable to set tact mac-id.
788 choices: ['disable', 'enable']
789 mss_t:
790 aliases: ['mss-t']
791 type: int
792 description: Tcam tact mss.
793 mss_t_v:
794 aliases: ['mss-t-v']
795 type: str
796 description: Enable to set tact mss.
797 choices: ['disable', 'enable']
798 mtuv4:
799 type: int
800 description: Tcam tact mtuv4.
801 mtuv4_v:
802 aliases: ['mtuv4-v']
803 type: str
804 description: Enable to set tact mtuv4.
805 choices: ['disable', 'enable']
806 mtuv6:
807 type: int
808 description: Tcam tact mtuv6.
809 mtuv6_v:
810 aliases: ['mtuv6-v']
811 type: str
812 description: Enable to set tact mtuv6.
813 choices: ['disable', 'enable']
814 slif_act:
815 aliases: ['slif-act']
816 type: int
817 description: Tcam tact slif-act.
818 slif_act_v:
819 aliases: ['slif-act-v']
820 type: str
821 description: Enable to set tact slif-act.
822 choices: ['disable', 'enable']
823 sublnkid:
824 type: int
825 description: Tcam tact sublnkid.
826 sublnkid_v:
827 aliases: ['sublnkid-v']
828 type: str
829 description: Enable to set tact sublnkid.
830 choices: ['disable', 'enable']
831 tgtv_act:
832 aliases: ['tgtv-act']
833 type: int
834 description: Tcam tact tgtv-act.
835 tgtv_act_v:
836 aliases: ['tgtv-act-v']
837 type: str
838 description: Enable to set tact tgtv-act.
839 choices: ['disable', 'enable']
840 tlif_act:
841 aliases: ['tlif-act']
842 type: int
843 description: Tcam tact tlif-act.
844 tlif_act_v:
845 aliases: ['tlif-act-v']
846 type: str
847 description: Enable to set tact tlif-act.
848 choices: ['disable', 'enable']
849 tpeid:
850 type: int
851 description: Tcam tact tpeid.
852 tpeid_v:
853 aliases: ['tpeid-v']
854 type: str
855 description: Enable to set tact tpeid.
856 choices: ['disable', 'enable']
857 v6fe:
858 type: int
859 description: Tcam tact v6fe.
860 v6fe_v:
861 aliases: ['v6fe-v']
862 type: str
863 description: Enable to set tact v6fe.
864 choices: ['disable', 'enable']
865 vep_en_v:
866 aliases: ['vep-en-v']
867 type: str
868 description: Enable to set tact vep-en.
869 choices: ['disable', 'enable']
870 vep_slid:
871 aliases: ['vep-slid']
872 type: int
873 description: Tcam tact vep_slid.
874 vep_slid_v:
875 aliases: ['vep-slid-v']
876 type: str
877 description: Enable to set tact vep-slid.
878 choices: ['disable', 'enable']
879 vep_en:
880 type: int
881 description: Tcam tact vep_en.
882 xlt_lif:
883 aliases: ['xlt-lif']
884 type: int
885 description: Tcam tact xlt-lif.
886 xlt_lif_v:
887 aliases: ['xlt-lif-v']
888 type: str
889 description: Enable to set tact xlt-lif.
890 choices: ['disable', 'enable']
891 xlt_vid:
892 aliases: ['xlt-vid']
893 type: int
894 description: Tcam tact xlt-vid.
895 xlt_vid_v:
896 aliases: ['xlt-vid-v']
897 type: str
898 description: Enable to set tact xlt-vid.
899 choices: ['disable', 'enable']
900 type:
901 type: str
902 description: TCAM policy type.
903 choices: ['L2_src_tc', 'L2_tgt_tc', 'L2_src_mir', 'L2_tgt_mir', 'L2_src_act',
904 'L2_tgt_act', 'IPv4_src_tc', 'IPv4_tgt_tc', 'IPv4_src_mir',
905 'IPv4_tgt_mir', 'IPv4_src_act', 'IPv4_tgt_act', 'IPv6_src_tc',
906 'IPv6_tgt_tc', 'IPv6_src_mir', 'IPv6_tgt_mir', 'IPv6_src_act',
907 'IPv6_tgt_act']
908 vid:
909 type: int
910 description: NPU TCAM VID.
911 '''
912
913 EXAMPLES = '''
914 - name: Example playbook (generated based on argument schema)
915 hosts: fortimanagers
916 connection: httpapi
917 gather_facts: false
918 tasks:
919 - name: Configure NPU TCAM policies.
920 fortinet.fortimanager.fmgr_system_npu_nputcam:
921 # workspace_locking_adom: <global or your adom name>
922 adom: <your own value>
923 state: present # <value in [present, absent]>
924 system_npu_nputcam:
925 name: "your value" # Required variable, string
926 # data:
927 # df: <value in [disable, enable]>
928 # dstip: <string>
929 # dstipv6: <string>
930 # dstmac: <string>
931 # dstport: <integer>
932 # ethertype: <string>
933 # ext_tag: <value in [disable, enable]>
934 # frag_off: <integer>
935 # gen_buf_cnt: <integer>
936 # gen_iv: <value in [invalid, valid]>
937 # gen_l3_flags: <integer>
938 # gen_l4_flags: <integer>
939 # gen_pkt_ctrl: <integer>
940 # gen_pri: <integer>
941 # gen_pri_v: <value in [invalid, valid]>
942 # gen_tv: <value in [invalid, valid]>
943 # ihl: <integer>
944 # ip4_id: <integer>
945 # ip6_fl: <integer>
946 # ipver: <integer>
947 # l4_wd10: <integer>
948 # l4_wd11: <integer>
949 # l4_wd8: <integer>
950 # l4_wd9: <integer>
951 # mf: <value in [disable, enable]>
952 # protocol: <integer>
953 # slink: <integer>
954 # smac_change: <value in [disable, enable]>
955 # sp: <integer>
956 # src_cfi: <value in [disable, enable]>
957 # src_prio: <integer>
958 # src_updt: <value in [disable, enable]>
959 # srcip: <string>
960 # srcipv6: <string>
961 # srcmac: <string>
962 # srcport: <integer>
963 # svid: <integer>
964 # tcp_ack: <value in [disable, enable]>
965 # tcp_cwr: <value in [disable, enable]>
966 # tcp_ece: <value in [disable, enable]>
967 # tcp_fin: <value in [disable, enable]>
968 # tcp_push: <value in [disable, enable]>
969 # tcp_rst: <value in [disable, enable]>
970 # tcp_syn: <value in [disable, enable]>
971 # tcp_urg: <value in [disable, enable]>
972 # tgt_cfi: <value in [disable, enable]>
973 # tgt_prio: <integer>
974 # tgt_updt: <value in [disable, enable]>
975 # tgt_v: <value in [invalid, valid]>
976 # tos: <integer>
977 # tp: <integer>
978 # ttl: <integer>
979 # tvid: <integer>
980 # vdid: <integer>
981 # dbg_dump: <integer>
982 # mask:
983 # df: <value in [disable, enable]>
984 # dstip: <string>
985 # dstipv6: <string>
986 # dstmac: <string>
987 # dstport: <integer>
988 # ethertype: <string>
989 # ext_tag: <value in [disable, enable]>
990 # frag_off: <integer>
991 # gen_buf_cnt: <integer>
992 # gen_iv: <value in [invalid, valid]>
993 # gen_l3_flags: <integer>
994 # gen_l4_flags: <integer>
995 # gen_pkt_ctrl: <integer>
996 # gen_pri: <integer>
997 # gen_pri_v: <value in [invalid, valid]>
998 # gen_tv: <value in [invalid, valid]>
999 # ihl: <integer>
1000 # ip4_id: <integer>
1001 # ip6_fl: <integer>
1002 # ipver: <integer>
1003 # l4_wd10: <integer>
1004 # l4_wd11: <integer>
1005 # l4_wd8: <integer>
1006 # l4_wd9: <integer>
1007 # mf: <value in [disable, enable]>
1008 # protocol: <integer>
1009 # slink: <integer>
1010 # smac_change: <value in [disable, enable]>
1011 # sp: <integer>
1012 # src_cfi: <value in [disable, enable]>
1013 # src_prio: <integer>
1014 # src_updt: <value in [disable, enable]>
1015 # srcip: <string>
1016 # srcipv6: <string>
1017 # srcmac: <string>
1018 # srcport: <integer>
1019 # svid: <integer>
1020 # tcp_ack: <value in [disable, enable]>
1021 # tcp_cwr: <value in [disable, enable]>
1022 # tcp_ece: <value in [disable, enable]>
1023 # tcp_fin: <value in [disable, enable]>
1024 # tcp_push: <value in [disable, enable]>
1025 # tcp_rst: <value in [disable, enable]>
1026 # tcp_syn: <value in [disable, enable]>
1027 # tcp_urg: <value in [disable, enable]>
1028 # tgt_cfi: <value in [disable, enable]>
1029 # tgt_prio: <integer>
1030 # tgt_updt: <value in [disable, enable]>
1031 # tgt_v: <value in [invalid, valid]>
1032 # tos: <integer>
1033 # tp: <integer>
1034 # ttl: <integer>
1035 # tvid: <integer>
1036 # vdid: <integer>
1037 # mir_act:
1038 # vlif: <integer>
1039 # oid: <integer>
1040 # pri_act:
1041 # priority: <integer>
1042 # weight: <integer>
1043 # sact:
1044 # act: <integer>
1045 # act_v: <value in [disable, enable]>
1046 # bmproc: <integer>
1047 # bmproc_v: <value in [disable, enable]>
1048 # df_lif: <integer>
1049 # df_lif_v: <value in [disable, enable]>
1050 # dfr: <integer>
1051 # dfr_v: <value in [disable, enable]>
1052 # dmac_skip: <integer>
1053 # dmac_skip_v: <value in [disable, enable]>
1054 # dosen: <integer>
1055 # dosen_v: <value in [disable, enable]>
1056 # espff_proc: <integer>
1057 # espff_proc_v: <value in [disable, enable]>
1058 # etype_pid: <integer>
1059 # etype_pid_v: <value in [disable, enable]>
1060 # frag_proc: <integer>
1061 # frag_proc_v: <value in [disable, enable]>
1062 # fwd: <integer>
1063 # fwd_lif: <integer>
1064 # fwd_lif_v: <value in [disable, enable]>
1065 # fwd_tvid: <integer>
1066 # fwd_tvid_v: <value in [disable, enable]>
1067 # fwd_v: <value in [disable, enable]>
1068 # icpen: <integer>
1069 # icpen_v: <value in [disable, enable]>
1070 # igmp_mld_snp: <integer>
1071 # igmp_mld_snp_v: <value in [disable, enable]>
1072 # learn: <integer>
1073 # learn_v: <value in [disable, enable]>
1074 # m_srh_ctrl: <integer>
1075 # m_srh_ctrl_v: <value in [disable, enable]>
1076 # mac_id: <integer>
1077 # mac_id_v: <value in [disable, enable]>
1078 # mss: <integer>
1079 # mss_v: <value in [disable, enable]>
1080 # pleen: <integer>
1081 # pleen_v: <value in [disable, enable]>
1082 # prio_pid: <integer>
1083 # prio_pid_v: <value in [disable, enable]>
1084 # promis: <integer>
1085 # promis_v: <value in [disable, enable]>
1086 # rfsh: <integer>
1087 # rfsh_v: <value in [disable, enable]>
1088 # smac_skip: <integer>
1089 # smac_skip_v: <value in [disable, enable]>
1090 # tp_smchk_v: <value in [disable, enable]>
1091 # tp_smchk: <integer>
1092 # tpe_id: <integer>
1093 # tpe_id_v: <value in [disable, enable]>
1094 # vdm: <integer>
1095 # vdm_v: <value in [disable, enable]>
1096 # vdom_id: <integer>
1097 # vdom_id_v: <value in [disable, enable]>
1098 # x_mode: <integer>
1099 # x_mode_v: <value in [disable, enable]>
1100 # tact:
1101 # act: <integer>
1102 # act_v: <value in [disable, enable]>
1103 # fmtuv4_s: <integer>
1104 # fmtuv4_s_v: <value in [disable, enable]>
1105 # fmtuv6_s: <integer>
1106 # fmtuv6_s_v: <value in [disable, enable]>
1107 # lnkid: <integer>
1108 # lnkid_v: <value in [disable, enable]>
1109 # mac_id: <integer>
1110 # mac_id_v: <value in [disable, enable]>
1111 # mss_t: <integer>
1112 # mss_t_v: <value in [disable, enable]>
1113 # mtuv4: <integer>
1114 # mtuv4_v: <value in [disable, enable]>
1115 # mtuv6: <integer>
1116 # mtuv6_v: <value in [disable, enable]>
1117 # slif_act: <integer>
1118 # slif_act_v: <value in [disable, enable]>
1119 # sublnkid: <integer>
1120 # sublnkid_v: <value in [disable, enable]>
1121 # tgtv_act: <integer>
1122 # tgtv_act_v: <value in [disable, enable]>
1123 # tlif_act: <integer>
1124 # tlif_act_v: <value in [disable, enable]>
1125 # tpeid: <integer>
1126 # tpeid_v: <value in [disable, enable]>
1127 # v6fe: <integer>
1128 # v6fe_v: <value in [disable, enable]>
1129 # vep_en_v: <value in [disable, enable]>
1130 # vep_slid: <integer>
1131 # vep_slid_v: <value in [disable, enable]>
1132 # vep_en: <integer>
1133 # xlt_lif: <integer>
1134 # xlt_lif_v: <value in [disable, enable]>
1135 # xlt_vid: <integer>
1136 # xlt_vid_v: <value in [disable, enable]>
1137 # type: <value in [L2_src_tc, L2_tgt_tc, L2_src_mir, ...]>
1138 # vid: <integer>
1139 '''
1140
1141 RETURN = '''
1142 meta:
1143 description: The result of the request.
1144 type: dict
1145 returned: always
1146 contains:
1147 request_url:
1148 description: The full url requested.
1149 returned: always
1150 type: str
1151 sample: /sys/login/user
1152 response_code:
1153 description: The status of api request.
1154 returned: always
1155 type: int
1156 sample: 0
1157 response_data:
1158 description: The api response.
1159 type: list
1160 returned: always
1161 response_message:
1162 description: The descriptive message of the api response.
1163 type: str
1164 returned: always
1165 sample: OK.
1166 system_information:
1167 description: The information of the target system.
1168 type: dict
1169 returned: always
1170 rc:
1171 description: The status the request.
1172 type: int
1173 returned: always
1174 sample: 0
1175 version_check_warning:
1176 description: Warning if the parameters used in the playbook are not supported by the current FortiManager version.
1177 type: list
1178 returned: complex
1179 '''
1180 from ansible.module_utils.basic import AnsibleModule
1181 from ansible.module_utils.connection import Connection
1182 from ansible_collections.fortinet.fortimanager.plugins.module_utils.napi import NAPIManager, check_galaxy_version, check_parameter_bypass
1183 from ansible_collections.fortinet.fortimanager.plugins.module_utils.common import get_module_arg_spec
1184
1185
1186 def main():
1187 urls_list = [
1188 '/pm/config/adom/{adom}/obj/system/npu/npu-tcam',
1189 '/pm/config/global/obj/system/npu/npu-tcam'
1190 ]
1191 module_arg_spec = {
1192 'adom': {'required': True, 'type': 'str'},
1193 'revision_note': {'type': 'str'},
1194 'system_npu_nputcam': {
1195 'type': 'dict', 'v_range': [['7.4.2', '']],
1196 'options': {
1197 'data': {
1198 'v_range': [['7.4.2', '']],
1199 'type': 'dict',
1200 'options': {
1201 'df': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1202 'dstip': {'v_range': [['7.4.2', '']], 'type': 'str'},
1203 'dstipv6': {'v_range': [['7.4.2', '']], 'type': 'str'},
1204 'dstmac': {'v_range': [['7.4.2', '']], 'type': 'str'},
1205 'dstport': {'v_range': [['7.4.2', '']], 'type': 'int'},
1206 'ethertype': {'v_range': [['7.4.2', '']], 'type': 'str'},
1207 'ext-tag': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1208 'frag-off': {'v_range': [['7.4.2', '']], 'type': 'int'},
1209 'gen-buf-cnt': {'v_range': [['7.4.2', '']], 'type': 'int'},
1210 'gen-iv': {'v_range': [['7.4.2', '']], 'choices': ['invalid', 'valid'], 'type': 'str'},
1211 'gen-l3-flags': {'v_range': [['7.4.2', '']], 'type': 'int'},
1212 'gen-l4-flags': {'v_range': [['7.4.2', '']], 'type': 'int'},
1213 'gen-pkt-ctrl': {'v_range': [['7.4.2', '']], 'type': 'int'},
1214 'gen-pri': {'v_range': [['7.4.2', '']], 'type': 'int'},
1215 'gen-pri-v': {'v_range': [['7.4.2', '']], 'choices': ['invalid', 'valid'], 'type': 'str'},
1216 'gen-tv': {'v_range': [['7.4.2', '']], 'choices': ['invalid', 'valid'], 'type': 'str'},
1217 'ihl': {'v_range': [['7.4.2', '']], 'type': 'int'},
1218 'ip4-id': {'v_range': [['7.4.2', '']], 'type': 'int'},
1219 'ip6-fl': {'v_range': [['7.4.2', '']], 'type': 'int'},
1220 'ipver': {'v_range': [['7.4.2', '']], 'type': 'int'},
1221 'l4-wd10': {'v_range': [['7.4.2', '']], 'type': 'int'},
1222 'l4-wd11': {'v_range': [['7.4.2', '']], 'type': 'int'},
1223 'l4-wd8': {'v_range': [['7.4.2', '']], 'type': 'int'},
1224 'l4-wd9': {'v_range': [['7.4.2', '']], 'type': 'int'},
1225 'mf': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1226 'protocol': {'v_range': [['7.4.2', '']], 'type': 'int'},
1227 'slink': {'v_range': [['7.4.2', '']], 'type': 'int'},
1228 'smac-change': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1229 'sp': {'v_range': [['7.4.2', '']], 'type': 'int'},
1230 'src-cfi': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1231 'src-prio': {'v_range': [['7.4.2', '']], 'type': 'int'},
1232 'src-updt': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1233 'srcip': {'v_range': [['7.4.2', '']], 'type': 'str'},
1234 'srcipv6': {'v_range': [['7.4.2', '']], 'type': 'str'},
1235 'srcmac': {'v_range': [['7.4.2', '']], 'type': 'str'},
1236 'srcport': {'v_range': [['7.4.2', '']], 'type': 'int'},
1237 'svid': {'v_range': [['7.4.2', '']], 'type': 'int'},
1238 'tcp-ack': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1239 'tcp-cwr': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1240 'tcp-ece': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1241 'tcp-fin': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1242 'tcp-push': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1243 'tcp-rst': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1244 'tcp-syn': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1245 'tcp-urg': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1246 'tgt-cfi': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1247 'tgt-prio': {'v_range': [['7.4.2', '']], 'type': 'int'},
1248 'tgt-updt': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1249 'tgt-v': {'v_range': [['7.4.2', '']], 'choices': ['invalid', 'valid'], 'type': 'str'},
1250 'tos': {'v_range': [['7.4.2', '']], 'type': 'int'},
1251 'tp': {'v_range': [['7.4.2', '']], 'type': 'int'},
1252 'ttl': {'v_range': [['7.4.2', '']], 'type': 'int'},
1253 'tvid': {'v_range': [['7.4.2', '']], 'type': 'int'},
1254 'vdid': {'v_range': [['7.4.2', '']], 'type': 'int'}
1255 }
1256 },
1257 'dbg-dump': {'v_range': [['7.4.2', '']], 'type': 'int'},
1258 'mask': {
1259 'v_range': [['7.4.2', '']],
1260 'type': 'dict',
1261 'options': {
1262 'df': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1263 'dstip': {'v_range': [['7.4.2', '']], 'type': 'str'},
1264 'dstipv6': {'v_range': [['7.4.2', '']], 'type': 'str'},
1265 'dstmac': {'v_range': [['7.4.2', '']], 'type': 'str'},
1266 'dstport': {'v_range': [['7.4.2', '']], 'type': 'int'},
1267 'ethertype': {'v_range': [['7.4.2', '']], 'type': 'str'},
1268 'ext-tag': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1269 'frag-off': {'v_range': [['7.4.2', '']], 'type': 'int'},
1270 'gen-buf-cnt': {'v_range': [['7.4.2', '']], 'type': 'int'},
1271 'gen-iv': {'v_range': [['7.4.2', '']], 'choices': ['invalid', 'valid'], 'type': 'str'},
1272 'gen-l3-flags': {'v_range': [['7.4.2', '']], 'type': 'int'},
1273 'gen-l4-flags': {'v_range': [['7.4.2', '']], 'type': 'int'},
1274 'gen-pkt-ctrl': {'v_range': [['7.4.2', '']], 'type': 'int'},
1275 'gen-pri': {'v_range': [['7.4.2', '']], 'type': 'int'},
1276 'gen-pri-v': {'v_range': [['7.4.2', '']], 'choices': ['invalid', 'valid'], 'type': 'str'},
1277 'gen-tv': {'v_range': [['7.4.2', '']], 'choices': ['invalid', 'valid'], 'type': 'str'},
1278 'ihl': {'v_range': [['7.4.2', '']], 'type': 'int'},
1279 'ip4-id': {'v_range': [['7.4.2', '']], 'type': 'int'},
1280 'ip6-fl': {'v_range': [['7.4.2', '']], 'type': 'int'},
1281 'ipver': {'v_range': [['7.4.2', '']], 'type': 'int'},
1282 'l4-wd10': {'v_range': [['7.4.2', '']], 'type': 'int'},
1283 'l4-wd11': {'v_range': [['7.4.2', '']], 'type': 'int'},
1284 'l4-wd8': {'v_range': [['7.4.2', '']], 'type': 'int'},
1285 'l4-wd9': {'v_range': [['7.4.2', '']], 'type': 'int'},
1286 'mf': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1287 'protocol': {'v_range': [['7.4.2', '']], 'type': 'int'},
1288 'slink': {'v_range': [['7.4.2', '']], 'type': 'int'},
1289 'smac-change': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1290 'sp': {'v_range': [['7.4.2', '']], 'type': 'int'},
1291 'src-cfi': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1292 'src-prio': {'v_range': [['7.4.2', '']], 'type': 'int'},
1293 'src-updt': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1294 'srcip': {'v_range': [['7.4.2', '']], 'type': 'str'},
1295 'srcipv6': {'v_range': [['7.4.2', '']], 'type': 'str'},
1296 'srcmac': {'v_range': [['7.4.2', '']], 'type': 'str'},
1297 'srcport': {'v_range': [['7.4.2', '']], 'type': 'int'},
1298 'svid': {'v_range': [['7.4.2', '']], 'type': 'int'},
1299 'tcp-ack': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1300 'tcp-cwr': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1301 'tcp-ece': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1302 'tcp-fin': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1303 'tcp-push': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1304 'tcp-rst': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1305 'tcp-syn': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1306 'tcp-urg': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1307 'tgt-cfi': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1308 'tgt-prio': {'v_range': [['7.4.2', '']], 'type': 'int'},
1309 'tgt-updt': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1310 'tgt-v': {'v_range': [['7.4.2', '']], 'choices': ['invalid', 'valid'], 'type': 'str'},
1311 'tos': {'v_range': [['7.4.2', '']], 'type': 'int'},
1312 'tp': {'v_range': [['7.4.2', '']], 'type': 'int'},
1313 'ttl': {'v_range': [['7.4.2', '']], 'type': 'int'},
1314 'tvid': {'v_range': [['7.4.2', '']], 'type': 'int'},
1315 'vdid': {'v_range': [['7.4.2', '']], 'type': 'int'}
1316 }
1317 },
1318 'mir-act': {'v_range': [['7.4.2', '']], 'type': 'dict', 'options': {'vlif': {'v_range': [['7.4.2', '']], 'type': 'int'}}},
1319 'name': {'v_range': [['7.4.2', '']], 'required': True, 'type': 'str'},
1320 'oid': {'v_range': [['7.4.2', '']], 'type': 'int'},
1321 'pri-act': {
1322 'v_range': [['7.4.2', '']],
1323 'type': 'dict',
1324 'options': {'priority': {'v_range': [['7.4.2', '']], 'type': 'int'}, 'weight': {'v_range': [['7.4.2', '']], 'type': 'int'}}
1325 },
1326 'sact': {
1327 'v_range': [['7.4.2', '']],
1328 'type': 'dict',
1329 'options': {
1330 'act': {'v_range': [['7.4.2', '']], 'type': 'int'},
1331 'act-v': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1332 'bmproc': {'v_range': [['7.4.2', '']], 'type': 'int'},
1333 'bmproc-v': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1334 'df-lif': {'v_range': [['7.4.2', '']], 'type': 'int'},
1335 'df-lif-v': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1336 'dfr': {'v_range': [['7.4.2', '']], 'type': 'int'},
1337 'dfr-v': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1338 'dmac-skip': {'v_range': [['7.4.2', '']], 'type': 'int'},
1339 'dmac-skip-v': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1340 'dosen': {'v_range': [['7.4.2', '']], 'type': 'int'},
1341 'dosen-v': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1342 'espff-proc': {'v_range': [['7.4.2', '']], 'type': 'int'},
1343 'espff-proc-v': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1344 'etype-pid': {'v_range': [['7.4.2', '']], 'type': 'int'},
1345 'etype-pid-v': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1346 'frag-proc': {'v_range': [['7.4.2', '']], 'type': 'int'},
1347 'frag-proc-v': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1348 'fwd': {'v_range': [['7.4.2', '']], 'type': 'int'},
1349 'fwd-lif': {'v_range': [['7.4.2', '']], 'type': 'int'},
1350 'fwd-lif-v': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1351 'fwd-tvid': {'v_range': [['7.4.2', '']], 'type': 'int'},
1352 'fwd-tvid-v': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1353 'fwd-v': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1354 'icpen': {'v_range': [['7.4.2', '']], 'type': 'int'},
1355 'icpen-v': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1356 'igmp-mld-snp': {'v_range': [['7.4.2', '']], 'type': 'int'},
1357 'igmp-mld-snp-v': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1358 'learn': {'v_range': [['7.4.2', '']], 'type': 'int'},
1359 'learn-v': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1360 'm-srh-ctrl': {'v_range': [['7.4.2', '']], 'type': 'int'},
1361 'm-srh-ctrl-v': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1362 'mac-id': {'v_range': [['7.4.2', '']], 'type': 'int'},
1363 'mac-id-v': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1364 'mss': {'v_range': [['7.4.2', '']], 'type': 'int'},
1365 'mss-v': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1366 'pleen': {'v_range': [['7.4.2', '']], 'type': 'int'},
1367 'pleen-v': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1368 'prio-pid': {'v_range': [['7.4.2', '']], 'type': 'int'},
1369 'prio-pid-v': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1370 'promis': {'v_range': [['7.4.2', '']], 'type': 'int'},
1371 'promis-v': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1372 'rfsh': {'v_range': [['7.4.2', '']], 'type': 'int'},
1373 'rfsh-v': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1374 'smac-skip': {'v_range': [['7.4.2', '']], 'type': 'int'},
1375 'smac-skip-v': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1376 'tp-smchk-v': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1377 'tp_smchk': {'v_range': [['7.4.2', '']], 'type': 'int'},
1378 'tpe-id': {'v_range': [['7.4.2', '']], 'type': 'int'},
1379 'tpe-id-v': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1380 'vdm': {'v_range': [['7.4.2', '']], 'type': 'int'},
1381 'vdm-v': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1382 'vdom-id': {'v_range': [['7.4.2', '']], 'type': 'int'},
1383 'vdom-id-v': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1384 'x-mode': {'v_range': [['7.4.2', '']], 'type': 'int'},
1385 'x-mode-v': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'}
1386 }
1387 },
1388 'tact': {
1389 'v_range': [['7.4.2', '']],
1390 'type': 'dict',
1391 'options': {
1392 'act': {'v_range': [['7.4.2', '']], 'type': 'int'},
1393 'act-v': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1394 'fmtuv4-s': {'v_range': [['7.4.2', '']], 'type': 'int'},
1395 'fmtuv4-s-v': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1396 'fmtuv6-s': {'v_range': [['7.4.2', '']], 'type': 'int'},
1397 'fmtuv6-s-v': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1398 'lnkid': {'v_range': [['7.4.2', '']], 'type': 'int'},
1399 'lnkid-v': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1400 'mac-id': {'v_range': [['7.4.2', '']], 'type': 'int'},
1401 'mac-id-v': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1402 'mss-t': {'v_range': [['7.4.2', '']], 'type': 'int'},
1403 'mss-t-v': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1404 'mtuv4': {'v_range': [['7.4.2', '']], 'type': 'int'},
1405 'mtuv4-v': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1406 'mtuv6': {'v_range': [['7.4.2', '']], 'type': 'int'},
1407 'mtuv6-v': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1408 'slif-act': {'v_range': [['7.4.2', '']], 'type': 'int'},
1409 'slif-act-v': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1410 'sublnkid': {'v_range': [['7.4.2', '']], 'type': 'int'},
1411 'sublnkid-v': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1412 'tgtv-act': {'v_range': [['7.4.2', '']], 'type': 'int'},
1413 'tgtv-act-v': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1414 'tlif-act': {'v_range': [['7.4.2', '']], 'type': 'int'},
1415 'tlif-act-v': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1416 'tpeid': {'v_range': [['7.4.2', '']], 'type': 'int'},
1417 'tpeid-v': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1418 'v6fe': {'v_range': [['7.4.2', '']], 'type': 'int'},
1419 'v6fe-v': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1420 'vep-en-v': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1421 'vep-slid': {'v_range': [['7.4.2', '']], 'type': 'int'},
1422 'vep-slid-v': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1423 'vep_en': {'v_range': [['7.4.2', '']], 'type': 'int'},
1424 'xlt-lif': {'v_range': [['7.4.2', '']], 'type': 'int'},
1425 'xlt-lif-v': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1426 'xlt-vid': {'v_range': [['7.4.2', '']], 'type': 'int'},
1427 'xlt-vid-v': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'}
1428 }
1429 },
1430 'type': {
1431 'v_range': [['7.4.2', '']],
1432 'choices': [
1433 'L2_src_tc', 'L2_tgt_tc', 'L2_src_mir', 'L2_tgt_mir', 'L2_src_act', 'L2_tgt_act', 'IPv4_src_tc', 'IPv4_tgt_tc', 'IPv4_src_mir',
1434 'IPv4_tgt_mir', 'IPv4_src_act', 'IPv4_tgt_act', 'IPv6_src_tc', 'IPv6_tgt_tc', 'IPv6_src_mir', 'IPv6_tgt_mir', 'IPv6_src_act',
1435 'IPv6_tgt_act'
1436 ],
1437 'type': 'str'
1438 },
1439 'vid': {'v_range': [['7.4.2', '']], 'type': 'int'}
1440 }
1441 }
1442 }
1443
1444 module_option_spec = get_module_arg_spec('full crud')
1445 module_arg_spec.update(module_option_spec)
1446 check_galaxy_version(module_arg_spec)
1447 module = AnsibleModule(argument_spec=check_parameter_bypass(module_arg_spec, 'system_npu_nputcam'),
1448 supports_check_mode=True)
1449 if not module._socket_path:
1450 module.fail_json(msg='MUST RUN IN HTTPAPI MODE')
1451 connection = Connection(module._socket_path)
1452 fmgr = NAPIManager('full crud', module_arg_spec, urls_list,
1453 'name', 'data', module, connection)
1454 fmgr.process_crud()
1455 module.exit_json(meta=module.params)
1456
1457
1458 if __name__ == '__main__':
1459 main()