Resource Type: nsx_nat

Defined in:
lib/puppet/type/nsx_nat.rb
Providers:
default

Overview

Manage NSX nat rules

Properties

  • action

    destination or source nat

    Supported values:
    • dnat
    • snat
  • enabled (defaults to: true)

    whether or not enabled, since api defaults to true, so are we

    Supported values:
    • true
    • false
  • ensure (defaults to: present)

    The basic property that the resource should be in.

    Supported values:
    • present
    • absent
  • icmp_type

    icmp_type can be used to specify an icmp sub option, example: echo-request

  • original_address

    original ip/range

    Supported values:
    • /\d/
  • original_port

    original port, cannot be used with certain protocols or with action: snat

    Supported values:
    • /^\d+$/
  • protocol

    nat protocol to be used, note: for icmp, the icmp_type can be used to specify sub option ( example: echo-request )

  • translated_address

    translated ip/range

    Supported values:
    • /\d/
  • translated_port

    translated port, cannot be used with certain protocols or with action: snat

    Supported values:
    • /^\d+$/
  • vnic

    vnic number to use

    Supported values:
    • /^[0-9]$/

Parameters

  • description

    description to be used for the nat rule, this is the namevar, so must be unique

  • provider

    The specific backend to use for this ‘nsx_nat` resource. You will seldom need to specify this — Puppet will usually discover the appropriate provider for your platform.

  • scope_name

    the edge where this nat is to be configured

    Supported values:
    • /\w/