Giter VIP home page Giter VIP logo

Comments (4)

scshitole avatar scshitole commented on June 1, 2024

@pkustner this is what i am getting if i excute

ltm snat outbound {
    origins {
        0.0.0.0/0 { }
    }
    snatpool /Common/out
}

after running
terraform apply

An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
  + create

Terraform will perform the following actions:

  + bigip_ltm_snat.outbound
      id:             <computed>
      name:           "outbound"
      origins.#:      "1"
      origins.0.name: "0.0.0.0"
      snatpool:       "/Common/out"
      vlansdisabled:  "false"


Plan: 1 to add, 0 to change, 0 to destroy.

Do you want to perform these actions?
  Terraform will perform the actions described above.
  Only 'yes' will be accepted to approve.

  Enter a value: yes

bigip_ltm_snat.outbound: Creating...
  name:           "" => "outbound"
  origins.#:      "0" => "1"
  origins.0.name: "" => "0.0.0.0"
  snatpool:       "" => "/Common/out"
  vlansdisabled:  "" => "false"
bigip_ltm_snat.outbound: Creation complete after 0s (ID: outbound)

Apply complete! Resources: 1 added, 0 changed, 0 destroyed.

are which field you need from
image
image

from terraform-provider-bigip.

scshitole avatar scshitole commented on June 1, 2024

@pkustner so basically you are asking to add vlan list ?

from terraform-provider-bigip.

pkustner avatar pkustner commented on June 1, 2024

from terraform-provider-bigip.

scshitole avatar scshitole commented on June 1, 2024

@pkustner fix is in

cat master.tf 
provider "bigip" {
  address = "10.192.74.68"
  username = "admin"
  password = "admin"
}


resource "bigip_ltm_snat" "test-snat" {
 name = "test-snat"
 translation = "/Common/136.1.1.1"
 origins = { name = "2.2.2.2" }
 origins = { name = "3.3.3.3" }
 vlansdisabled = true
 autolasthop = "default"
 mirror = "disabled"
 partition = "Common"
 full_path = "/Common/test-snat"
 vlans = ["test-vlan"]
}
SJC-ML-00028512:terraform-provider-bigip shitole$ terraform plan
Refreshing Terraform state in-memory prior to plan...
The refreshed state will be used to calculate this plan, but will not be
persisted to local or remote state storage.

bigip_ltm_snat.test-snat: Refreshing state... (ID: test-snat`)

------------------------------------------------------------------------

An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
  + create

Terraform will perform the following actions:

  + bigip_ltm_snat.test-snat
      id:               <computed>
      autolasthop:      "default"
      full_path:        "/Common/test-snat"
      mirror:           "disabled"
      name:             "test-snat"
      origins.#:        "2"
      origins.0.name:   "2.2.2.2"
      origins.1.name:   "3.3.3.3"
      partition:        "Common"
      translation:      "/Common/136.1.1.1"
      vlans.#:          "1"
      vlans.2119867841: "test-vlan"
      vlansdisabled:    "true"


Plan: 1 to add, 0 to change, 0 to destroy.

------------------------------------------------------------------------

Note: You didn't specify an "-out" parameter to save this plan, so Terraform
can't guarantee that exactly these actions will be performed if
"terraform apply" is subsequently run.

SJC-ML-00028512:terraform-provider-bigip shitole$ terraform apply
bigip_ltm_snat.test-snat: Refreshing state... (ID: test-snat`)

An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
  + create

Terraform will perform the following actions:

  + bigip_ltm_snat.test-snat
      id:               <computed>
      autolasthop:      "default"
      full_path:        "/Common/test-snat"
      mirror:           "disabled"
      name:             "test-snat"
      origins.#:        "2"
      origins.0.name:   "2.2.2.2"
      origins.1.name:   "3.3.3.3"
      partition:        "Common"
      translation:      "/Common/136.1.1.1"
      vlans.#:          "1"
      vlans.2119867841: "test-vlan"
      vlansdisabled:    "true"


Plan: 1 to add, 0 to change, 0 to destroy.

Do you want to perform these actions?
  Terraform will perform the actions described above.
  Only 'yes' will be accepted to approve.

  Enter a value: yes

bigip_ltm_snat.test-snat: Creating...
  autolasthop:      "" => "default"
  full_path:        "" => "/Common/test-snat"
  mirror:           "" => "disabled"
  name:             "" => "test-snat"
  origins.#:        "0" => "2"
  origins.0.name:   "" => "2.2.2.2"
  origins.1.name:   "" => "3.3.3.3"
  partition:        "" => "Common"
  translation:      "" => "/Common/136.1.1.1"
  vlans.#:          "0" => "1"
  vlans.2119867841: "" => "test-vlan"
  vlansdisabled:    "" => "true"
bigip_ltm_snat.test-snat: Creation complete after 0s (ID: test-snat)

Apply complete! Resources: 1 added, 0 changed, 0 destroyed.
SJC-ML-00028512:terraform-provider-bigip shitole$ terraform destroy
bigip_ltm_snat.test-snat: Refreshing state... (ID: test-snat)

An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
  - destroy

Terraform will perform the following actions:

  - bigip_ltm_snat.test-snat


Plan: 0 to add, 0 to change, 1 to destroy.

Do you really want to destroy?
  Terraform will destroy all your managed infrastructure, as shown above.
  There is no undo. Only 'yes' will be accepted to confirm.

  Enter a value: yes

bigip_ltm_snat.test-snat: Destroying... (ID: test-snat)
bigip_ltm_snat.test-snat: Destruction complete after 0s

Destroy complete! Resources: 1 destroyed.
SJC-ML-00028512:terraform-provider-bigip shitole$ 

from terraform-provider-bigip.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.