check_point.gaia.cp_gaia_vlan_interface (5.0.1) — module

Modify vlan interface.

| "added in version" 3.0.0 of check_point.gaia"

Authors: Ameer Asli (@chkp-ameera)

Install collection

Install with ansible-galaxy collection install check_point.gaia:==5.0.1


Add to requirements.yml

  collections:
    - name: check_point.gaia
      version: 5.0.1

Description

Modify vlan interface.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Set comment field of a vlan interface
  check_point.gaia.cp_gaia_vlan_interface:
    comments: "vlan5 interface"
    name: eth1.5

Inputs

    
mtu:
    description: Interface mtu.
    required: false
    type: int

dhcp:
    description: DHCP configuration.
    required: false
    suboptions:
      enabled:
        description: Enable DHCP on this interface.
        required: false
        type: bool
      leasetime:
        description: Specifies the lease time, in seconds, when requesting for an IP address.
          Default value is "default" - according to the server.
        required: false
        type: int
      reacquire_timeout:
        default: 10
        description: When trying to reacquire the last ip address, The reacquire-timeout
          statement sets the time, in seconds, that must elapse after the first try to
          reacquire the old address before it gives up and tries to discover a new address.
        required: false
        type: int
      retry:
        default: 300
        description: Specifies the time, in seconds, that must pass after the interface
          has determined that there is no DHCP server present before it tries again to
          contact a DHCP server.
        required: false
        type: int
      server_timeout:
        default: 60
        description: Specifies the amount of time, in seconds, that must pass between
          the time that the interface begins to try to determine its address and the time
          that it decides that it's not going to be able to contact a server.
        required: false
        type: int
    type: dict

name:
    description: Interface name with format "<parent interface>.<id>", for example  eth0.2,
      eth1.3 .. etc.
    required: true
    type: str

state:
    choices:
    - present
    - absent
    default: present
    description: Ansible state which can be C(present) or C(absent).
    required: false
    type: str

enabled:
    description: Interface State.
    required: false
    type: bool

version:
    description: Gaia API version for example 1.6.
    required: false
    type: str

comments:
    description: Interface Comments.
    required: false
    type: str

ipv4_address:
    description: Interface IPv4 address.
    required: false
    type: str

ipv6_address:
    description: Interface IPv6 address.
    required: false
    type: str

ipv6_autoconfig:
    description: Configure IPv6 auto-configuration.
    required: false
    type: bool

ipv4_mask_length:
    description: Interface IPv4 address mask length.
    required: false
    type: int

ipv6_mask_length:
    description: Interface IPv6 address mask length.
    required: false
    type: int

Outputs

vlan_interface:
  description: The updated interface details.
  returned: always.
  type: dict