fortinet.fortimanager.fmgr_system_npu_nputcam_sact module – Source action of TCAM.
Note
This module is part of the fortinet.fortimanager collection (version 2.8.2).
You might already have this collection installed if you are using the ansible
package.
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install fortinet.fortimanager
.
To use it in a playbook, specify: fortinet.fortimanager.fmgr_system_npu_nputcam_sact
.
New in fortinet.fortimanager 2.4.0
Synopsis
This module is able to configure a FortiManager device.
Examples include all parameters and values which need to be adjusted to data sources before usage.
Parameters
Parameter |
Comments |
---|---|
The token to access FortiManager without using username and password. |
|
The parameter (adom) in requested url. |
|
Only set to True when module schema diffs with FortiManager API structure, module continues to execute without validating parameters. Choices:
|
|
Enable/Disable logging for task. Choices:
|
|
Authenticate Ansible client with forticloud API access token. |
|
Deprecated, please use “npu_tcam” |
|
The parameter (npu-tcam) in requested url. |
|
The overridden method for the underlying Json RPC request. Choices:
|
|
The rc codes list with which the conditions to fail will be overriden. |
|
The rc codes list with which the conditions to succeed will be overriden. |
|
The top level parameters set. |
|
Tcam sact act. |
|
Enable to set sact act. Choices:
|
|
Tcam sact bmproc. |
|
Enable to set sact bmproc. Choices:
|
|
Tcam sact df-lif. |
|
Enable to set sact df-lif. Choices:
|
|
Tcam sact dfr. |
|
Enable to set sact dfr. Choices:
|
|
Tcam sact dmac-skip. |
|
Enable to set sact dmac-skip. Choices:
|
|
Tcam sact dosen. |
|
Enable to set sact dosen. Choices:
|
|
Tcam sact espff-proc. |
|
Enable to set sact espff-proc. Choices:
|
|
Tcam sact etype-pid. |
|
Enable to set sact etype-pid. Choices:
|
|
Tcam sact frag-proc. |
|
Enable to set sact frag-proc. Choices:
|
|
Tcam sact fwd. |
|
Tcam sact fwd-lif. |
|
Enable to set sact fwd-lif. Choices:
|
|
Tcam sact fwd-tvid. |
|
Enable to set sact fwd-vid. Choices:
|
|
Enable to set sact fwd. Choices:
|
|
Tcam sact icpen. |
|
Enable to set sact icpen. Choices:
|
|
Tcam sact igmp-mld-snp. |
|
Enable to set sact igmp-mld-snp. Choices:
|
|
Tcam sact learn. |
|
Enable to set sact learn. Choices:
|
|
Tcam sact m-srh-ctrl. |
|
Enable to set sact m-srh-ctrl. Choices:
|
|
Tcam sact mac-id. |
|
Enable to set sact mac-id. Choices:
|
|
Tcam sact mss. |
|
Enable to set sact mss. Choices:
|
|
Tcam sact pleen. |
|
Enable to set sact pleen. Choices:
|
|
Tcam sact prio-pid. |
|
Enable to set sact prio-pid. Choices:
|
|
Tcam sact promis. |
|
Enable to set sact promis. Choices:
|
|
Tcam sact rfsh. |
|
Enable to set sact rfsh. Choices:
|
|
Tcam sact smac-skip. |
|
Enable to set sact smac-skip. Choices:
|
|
Tcam sact tp mode. |
|
Enable to set sact tp mode. Choices:
|
|
Tcam sact tpe-id. |
|
Enable to set sact tpe-id. Choices:
|
|
Tcam sact vdm. |
|
Enable to set sact vdm. Choices:
|
|
Tcam sact vdom-id. |
|
Enable to set sact vdom-id. Choices:
|
|
Tcam sact x-mode. |
|
Enable to set sact x-mode. Choices:
|
|
The adom to lock for FortiManager running in workspace mode, the value can be global and others including root. |
|
The maximum time in seconds to wait for other user to release the workspace lock. Default: |
Notes
Note
Starting in version 2.4.0, all input arguments are named using the underscore naming convention (snake_case). Please change the arguments such as “var-name” to “var_name”. Old argument names are still available yet you will receive deprecation warnings. You can ignore this warning by setting deprecation_warnings=False in ansible.cfg.
Running in workspace locking mode is supported in this FortiManager module, the top level parameters workspace_locking_adom and workspace_locking_timeout help do the work.
Normally, running one module can fail when a non-zero rc is returned. you can also override the conditions to fail or succeed with parameters rc_failed and rc_succeeded
Examples
- name: Example playbook (generated based on argument schema)
hosts: fortimanagers
connection: httpapi
vars:
ansible_httpapi_use_ssl: true
ansible_httpapi_validate_certs: false
ansible_httpapi_port: 443
tasks:
- name: Source action of TCAM.
fortinet.fortimanager.fmgr_system_npu_nputcam_sact:
# bypass_validation: false
workspace_locking_adom: <value in [global, custom adom including root]>
workspace_locking_timeout: 300
# rc_succeeded: [0, -2, -3, ...]
# rc_failed: [-2, -3, ...]
adom: <your own value>
npu_tcam: <your own value>
system_npu_nputcam_sact:
act: <integer>
act_v: <value in [disable, enable]>
bmproc: <integer>
bmproc_v: <value in [disable, enable]>
df_lif: <integer>
df_lif_v: <value in [disable, enable]>
dfr: <integer>
dfr_v: <value in [disable, enable]>
dmac_skip: <integer>
dmac_skip_v: <value in [disable, enable]>
dosen: <integer>
dosen_v: <value in [disable, enable]>
espff_proc: <integer>
espff_proc_v: <value in [disable, enable]>
etype_pid: <integer>
etype_pid_v: <value in [disable, enable]>
frag_proc: <integer>
frag_proc_v: <value in [disable, enable]>
fwd: <integer>
fwd_lif: <integer>
fwd_lif_v: <value in [disable, enable]>
fwd_tvid: <integer>
fwd_tvid_v: <value in [disable, enable]>
fwd_v: <value in [disable, enable]>
icpen: <integer>
icpen_v: <value in [disable, enable]>
igmp_mld_snp: <integer>
igmp_mld_snp_v: <value in [disable, enable]>
learn: <integer>
learn_v: <value in [disable, enable]>
m_srh_ctrl: <integer>
m_srh_ctrl_v: <value in [disable, enable]>
mac_id: <integer>
mac_id_v: <value in [disable, enable]>
mss: <integer>
mss_v: <value in [disable, enable]>
pleen: <integer>
pleen_v: <value in [disable, enable]>
prio_pid: <integer>
prio_pid_v: <value in [disable, enable]>
promis: <integer>
promis_v: <value in [disable, enable]>
rfsh: <integer>
rfsh_v: <value in [disable, enable]>
smac_skip: <integer>
smac_skip_v: <value in [disable, enable]>
tp_smchk_v: <value in [disable, enable]>
tp_smchk: <integer>
tpe_id: <integer>
tpe_id_v: <value in [disable, enable]>
vdm: <integer>
vdm_v: <value in [disable, enable]>
vdom_id: <integer>
vdom_id_v: <value in [disable, enable]>
x_mode: <integer>
x_mode_v: <value in [disable, enable]>
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
The result of the request. Returned: always |
|
The full url requested. Returned: always Sample: |
|
The status of api request. Returned: always Sample: |
|
The api response. Returned: always |
|
The descriptive message of the api response. Returned: always Sample: |
|
The information of the target system. Returned: always |
|
The status the request. Returned: always Sample: |
|
Warning if the parameters used in the playbook are not supported by the current FortiManager version. Returned: complex |