opnsense_quagga_bgp_prefixlist (Resource)

Configure prefix lists for BGP.

Example Usage

// Configure a prefix list
resource "opnsense_quagga_bgp_prefixlist" "example0" {
  enabled     = false

  description = "prefixlist0"
  name = "example0"

  number = 1234
  action = "permit"

  network = "10.10.0.0"
}

Schema

Required

  • name (String) The name of this prefix list.
  • network (String) The network pattern you want to match. You can also add "ge" or "le" additions after the network statement. It's not validated so please be careful!
  • number (Number) The ACL sequence number (1-4294967294).

Optional

  • action (String) Set permit for match or deny to negate the rule. Defaults to "permit".
  • description (String) An optional description for this prefix list. Defaults to "".
  • enabled (Boolean) Enable this prefix list. Defaults to true.
  • ip_version (String) Set the IP version to use. Defaults to "IPv4".

Read-Only

  • id (String) UUID of the prefix list.

Import

In Terraform v1.5.0 and later, use an import block to import opnsense_quagga_bgp_prefixlist using the id. For example:

import {
  to = opnsense_quagga_bgp_prefixlist.example
  id = "<opnsense-resource-id>"
}

Using terraform import, import opnsense_quagga_bgp_prefixlist using the id. For example:

% terraform import opnsense_quagga_bgp_prefixlist.example <opnsense-resource-id>