cisco / ciscoacipuppet

Apache License 2.0
6 stars 11 forks source link

Unable to query cisco_aci_fvsubnet #2

Open shermdog opened 6 years ago

shermdog commented 6 years ago

Using puppet device --resource I am unable to query cisco_aci_fvsubnet.

[root@puppet-device-devel ~]# puppet device -v -t apic --resource cisco_aci_fvsubnet
Initiating authentication with APIC
Info: retrieving resource: cisco_aci_fvsubnet from apic at https://sandboxapicdc.cisco.com:443
Error: No set of title patterns matched the title "".

It's possible the elements are missing in ACI, but I think they are there.

image

mikewiebe commented 6 years ago

@shermdog Have a potential fix for the issue. Will get a PR open soon.

root@agent-ci-149:~# puppet device --target apic.example.com --resource cisco_aci_fvsubnet
Initiating authentication with APIC
cisco_aci_fvsubnet { '10.0.0.30/27':
  ensure    => 'present',
  ctrl      => 'querier',
  name      => '10.0.0.30/27',
  preferred => 'yes',
  scope     => 'private',
  virtual   => 'no',
}
cisco_aci_fvsubnet { '10.10.10.1/24':
  ensure    => 'present',
  name      => '10.10.10.1/24',
  preferred => 'no',
  scope     => 'private',
  virtual   => 'no',
}
cisco_aci_fvsubnet { '192.168.100.4/24':
  ensure    => 'present',
  name      => '192.168.100.4/24',
  preferred => 'no',
  scope     => 'private',
  virtual   => 'no',
}
cisco_aci_fvsubnet { '192.168.200.4/24':
  ensure    => 'present',
  name      => '192.168.200.4/24',
  preferred => 'no',
  scope     => 'private',
  virtual   => 'no',
}
cisco_aci_fvsubnet { '20.20.20.1/24':
  ensure    => 'present',
  ctrl      => 'nd',
  descr     => 'My subnet subnet1 in bridge domain test_bd1 in tenant test_tenant1',
  name      => '20.20.20.1/24',
  preferred => 'no',
  scope     => 'private',
  virtual   => 'no',
}
cisco_aci_fvsubnet { '30.30.30.1/24':
  ensure    => 'present',
  name      => '30.30.30.1/24',
  preferred => 'no',
  scope     => 'private',
  virtual   => 'no',
}
cisco_aci_fvsubnet { '9.9.9.1/24':
  ensure    => 'present',
  name      => '9.9.9.1/24',
  preferred => 'no',
  scope     => 'private',
  virtual   => 'no',
}