<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Terraform ACI Provider Error in Controllers</title>
    <link>https://community.cisco.com/t5/controllers/terraform-aci-provider-error/m-p/4090477#M118</link>
    <description>&lt;P&gt;It looks to me like the vlan_pool_dn variable changes after the encap block gets posted.&lt;/P&gt;&lt;P&gt;Changes from "uni/infra/vlanns-[External-VLAN-Pool]-static"&lt;/P&gt;&lt;P&gt;to "uni/infra"&lt;/P&gt;&lt;PRE&gt;&amp;nbsp;&lt;/PRE&gt;</description>
    <pubDate>Fri, 22 May 2020 03:53:10 GMT</pubDate>
    <dc:creator>AJ Cruz</dc:creator>
    <dc:date>2020-05-22T03:53:10Z</dc:date>
    <item>
      <title>Terraform ACI Provider Error</title>
      <link>https://community.cisco.com/t5/controllers/terraform-aci-provider-error/m-p/4089982#M112</link>
      <description>&lt;P&gt;I've been testing the Terraform ACI Provider. In many ways I like Terraform more vs Ansible, but so far I'm having one issue with Terraform and hope somebody has some insight.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I try to add an encapsulation block with this:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;PRE&gt;resource "aci_ranges" "Test-Encap-Block" {
  vlan_pool_dn  = "${aci_vlan_pool.External-VLAN-Pool.id}"
  _from = 101
  to = 101
}&lt;/PRE&gt;I get this error:&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;aci_ranges.Test-Encap-Block: Creating...&lt;/P&gt;&lt;P&gt;Error: unknown property value uni/infra/vlanns-[External-VLAN-Pool]-static/from-[101]-to-[101], name dn, class fvnsEncapBlk [(Dn0)] Dn0=,&lt;/P&gt;&lt;P&gt;on aci.tf line 56, in resource "aci_ranges" "Test-Encap-Block":&lt;BR /&gt;56: resource "aci_ranges" "Test-Encap-Block" {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems to be pulling all the pertinent information including the id of the VLAN pool I want to tie the encap block to, allocation mode, and vlan range so I'm not sure why it's throwing and unknown property value error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not a real programmer but it kinda feels like maybe that Dn0 variable shouldn't be empty? I have no idea what that is though.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 21 May 2020 13:56:00 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/terraform-aci-provider-error/m-p/4089982#M112</guid>
      <dc:creator>AJ Cruz</dc:creator>
      <dc:date>2020-05-21T13:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: Terraform ACI Provider Error</title>
      <link>https://community.cisco.com/t5/controllers/terraform-aci-provider-error/m-p/4090436#M113</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this:&lt;/P&gt;
&lt;PRE&gt;resource "aci_ranges" "vlanpool3" {
  depends_on = [
    aci_vlan_pool.test_vlan_pool,
  ]
  vlan_pool_dn  = aci_vlan_pool.test_vlan_pool.id
  _from  = "vlan-134"
  to  = "vlan-134"
  from  = "vlan-134"
  alloc_mode  = "static"
}
&lt;/PRE&gt;
&lt;P&gt;I made a webcast in the french community for terraform:&amp;nbsp;&lt;A href="https://bit.ly/WEBsld-may20" target="_blank"&gt;https://bit.ly/WEBsld-may20&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Doesn't matter if you don't understand french, I published a docker in which there's a folder ACI with some code example to provision a fabric using terraform and python.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyways, here is the docker:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;docker pull&amp;nbsp;supportlan/csc_demo_dc&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 May 2020 00:38:16 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/terraform-aci-provider-error/m-p/4090436#M113</guid>
      <dc:creator>Francesco Molino</dc:creator>
      <dc:date>2020-05-22T00:38:16Z</dc:date>
    </item>
    <item>
      <title>Re: Terraform ACI Provider Error</title>
      <link>https://community.cisco.com/t5/controllers/terraform-aci-provider-error/m-p/4090456#M114</link>
      <description>&lt;P&gt;Thank you! It is working now. I looked at several examples, even the ones I pulled from CLUS demos never had VLAN pools and encap blocks created. It was all Tenant config.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I didn't realize the encap blocks needed the "vlan-" appended to the front. I probably should have seeing the aci_ranges resource is generic, but man they should put that in the documentation for the provider.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 22 May 2020 01:45:58 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/terraform-aci-provider-error/m-p/4090456#M114</guid>
      <dc:creator>AJ Cruz</dc:creator>
      <dc:date>2020-05-22T01:45:58Z</dc:date>
    </item>
    <item>
      <title>Re: Terraform ACI Provider Error</title>
      <link>https://community.cisco.com/t5/controllers/terraform-aci-provider-error/m-p/4090458#M115</link>
      <description>&lt;P&gt;I do have one concern though, every time I run terraform apply it destroys and re-creates the encap blocks. Is that normal?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;resource "aci_vlan_pool" "External-VLAN-Pool" {
  name  = "External-VLAN-Pool"
  alloc_mode  = "static"
}

resource&amp;nbsp;"aci_ranges"&amp;nbsp;"External-Encap-Block"&amp;nbsp;{
&amp;nbsp;&amp;nbsp;depends_on&amp;nbsp;=&amp;nbsp;[
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;aci_vlan_pool.External-VLAN-Pool,
&amp;nbsp;&amp;nbsp;]
&amp;nbsp;&amp;nbsp;vlan_pool_dn&amp;nbsp;&amp;nbsp;=&amp;nbsp;aci_vlan_pool.External-VLAN-Pool.id
&amp;nbsp;&amp;nbsp;annotation&amp;nbsp;=&amp;nbsp;"test"
&amp;nbsp;&amp;nbsp;name_alias&amp;nbsp;=&amp;nbsp;"example"
&amp;nbsp;&amp;nbsp;description&amp;nbsp;=&amp;nbsp;"test&amp;nbsp;description"
&amp;nbsp;&amp;nbsp;role&amp;nbsp;=&amp;nbsp;"external"
&amp;nbsp;&amp;nbsp;_from&amp;nbsp;=&amp;nbsp;"vlan-101"
&amp;nbsp;&amp;nbsp;from&amp;nbsp;=&amp;nbsp;"vlan-101"
&amp;nbsp;&amp;nbsp;to&amp;nbsp;=&amp;nbsp;"vlan-101"
&amp;nbsp;&amp;nbsp;alloc_mode&amp;nbsp;=&amp;nbsp;"static"
}&lt;/PRE&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;yields this every time I run:&lt;/P&gt;&lt;P&gt;# aci_ranges.External-Encap-Block must be replaced&lt;BR /&gt;-/+ resource "aci_ranges" "External-Encap-Block" {&lt;BR /&gt;_from = "vlan-101"&lt;BR /&gt;alloc_mode = "static"&lt;BR /&gt;annotation = "test"&lt;BR /&gt;description = "test description"&lt;BR /&gt;from = "vlan-101"&lt;BR /&gt;~ id = "uni/infra/vlanns-[External-VLAN-Pool]-static/from-[vlan-101]-to-[vlan-101]" -&amp;gt; (known after apply)&lt;BR /&gt;name_alias = "example"&lt;BR /&gt;role = "external"&lt;BR /&gt;to = "vlan-101"&lt;BR /&gt;~ vlan_pool_dn = "uni/infra" -&amp;gt; "uni/infra/vlanns-[External-VLAN-Pool]-static" &lt;FONT color="#FF0000"&gt;# forces replacement&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thought nothing would be touched if it already existed&lt;/P&gt;</description>
      <pubDate>Fri, 22 May 2020 02:08:10 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/terraform-aci-provider-error/m-p/4090458#M115</guid>
      <dc:creator>AJ Cruz</dc:creator>
      <dc:date>2020-05-22T02:08:10Z</dc:date>
    </item>
    <item>
      <title>Re: Terraform ACI Provider Error</title>
      <link>https://community.cisco.com/t5/controllers/terraform-aci-provider-error/m-p/4090466#M116</link>
      <description>It shouldn’t create again. If you do a terraform plan do you see a change is going to be applied? &lt;BR /&gt;Do you see this resource in your terraform.tfstate file?</description>
      <pubDate>Fri, 22 May 2020 03:09:54 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/terraform-aci-provider-error/m-p/4090466#M116</guid>
      <dc:creator>Francesco Molino</dc:creator>
      <dc:date>2020-05-22T03:09:54Z</dc:date>
    </item>
    <item>
      <title>Re: Terraform ACI Provider Error</title>
      <link>https://community.cisco.com/t5/controllers/terraform-aci-provider-error/m-p/4090475#M117</link>
      <description>&lt;P&gt;Yes terraform plan shows the encap block is going to be replaced:&lt;/P&gt;&lt;PRE&gt;  # aci_ranges.External-Encap-Block must be replaced
-/+ resource "aci_ranges" "External-Encap-Block" {
        _from        = "vlan-101"
        alloc_mode   = "static"
        annotation   = "test"
        description  = "test description"
        from         = "vlan-101"
      ~ id           = "uni/infra/vlanns-[External-VLAN-Pool]-static/from-[vlan-101]-to-[vlan-101]" -&amp;gt; (known after apply)
        name_alias   = "example"
        role         = "external"
        to           = "vlan-101"
      ~ vlan_pool_dn = "uni/infra" -&amp;gt; "uni/infra/vlanns-[External-VLAN-Pool]-static" # forces replacement
    }&lt;/PRE&gt;&lt;P&gt;The resource does exist in my state file:&lt;/P&gt;&lt;PRE&gt; [root@devbox aci]# terraform state show aci_ranges.External-Encap-Block&lt;BR /&gt;# aci_ranges.External-Encap-Block:&lt;BR /&gt;resource "aci_ranges" "External-Encap-Block" {&lt;BR /&gt;_from = "vlan-101"&lt;BR /&gt;alloc_mode = "static"&lt;BR /&gt;annotation = "test"&lt;BR /&gt;description = "test description"&lt;BR /&gt;from = "vlan-101"&lt;BR /&gt;id = "uni/infra/vlanns-[External-VLAN-Pool]-static/from-[vlan-101]-to-[vlan-101]"&lt;BR /&gt;name_alias = "example"&lt;BR /&gt;role = "external"&lt;BR /&gt;to = "vlan-101"&lt;BR /&gt;vlan_pool_dn = "uni/infra"&lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 22 May 2020 03:50:31 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/terraform-aci-provider-error/m-p/4090475#M117</guid>
      <dc:creator>AJ Cruz</dc:creator>
      <dc:date>2020-05-22T03:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: Terraform ACI Provider Error</title>
      <link>https://community.cisco.com/t5/controllers/terraform-aci-provider-error/m-p/4090477#M118</link>
      <description>&lt;P&gt;It looks to me like the vlan_pool_dn variable changes after the encap block gets posted.&lt;/P&gt;&lt;P&gt;Changes from "uni/infra/vlanns-[External-VLAN-Pool]-static"&lt;/P&gt;&lt;P&gt;to "uni/infra"&lt;/P&gt;&lt;PRE&gt;&amp;nbsp;&lt;/PRE&gt;</description>
      <pubDate>Fri, 22 May 2020 03:53:10 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/terraform-aci-provider-error/m-p/4090477#M118</guid>
      <dc:creator>AJ Cruz</dc:creator>
      <dc:date>2020-05-22T03:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: Terraform ACI Provider Error</title>
      <link>https://community.cisco.com/t5/controllers/terraform-aci-provider-error/m-p/4090495#M119</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/324518"&gt;@AJ Cruz&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just wanted to say I like seeing other people using Terraform with ACI.&lt;BR /&gt;What are your thoughts so far?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sergiu&lt;/P&gt;</description>
      <pubDate>Fri, 22 May 2020 05:51:21 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/terraform-aci-provider-error/m-p/4090495#M119</guid>
      <dc:creator>Sergiu.Daniluk</dc:creator>
      <dc:date>2020-05-22T05:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: Terraform ACI Provider Error</title>
      <link>https://community.cisco.com/t5/controllers/terraform-aci-provider-error/m-p/4091213#M120</link>
      <description>I opened an issue on github on aci terraform provider.&lt;BR /&gt;Tested and getting the same issue.</description>
      <pubDate>Sat, 23 May 2020 15:48:09 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/terraform-aci-provider-error/m-p/4091213#M120</guid>
      <dc:creator>Francesco Molino</dc:creator>
      <dc:date>2020-05-23T15:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: Terraform ACI Provider Error</title>
      <link>https://community.cisco.com/t5/controllers/terraform-aci-provider-error/m-p/4091252#M121</link>
      <description>&lt;P&gt;I'm just barely scratching the surface but so far I really like Terraform. I love the option to run a plan to see exactly what would happen on an apply.&lt;/P&gt;</description>
      <pubDate>Sat, 23 May 2020 20:14:01 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/terraform-aci-provider-error/m-p/4091252#M121</guid>
      <dc:creator>AJ Cruz</dc:creator>
      <dc:date>2020-05-23T20:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: Terraform ACI Provider Error</title>
      <link>https://community.cisco.com/t5/controllers/terraform-aci-provider-error/m-p/4091861#M122</link>
      <description>You will see it's awesome what you can do with. Plans are very good when you want to take a view of what will be applied, save it and apply it later. Also, to come to a working previous state helps a lot in certain circumstances.</description>
      <pubDate>Mon, 25 May 2020 22:44:08 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/terraform-aci-provider-error/m-p/4091861#M122</guid>
      <dc:creator>Francesco Molino</dc:creator>
      <dc:date>2020-05-25T22:44:08Z</dc:date>
    </item>
  </channel>
</rss>

