Open shebang42 opened 3 weeks ago
First of all, the schema here (https://github.com/netascode/terraform-provider-fmc/blob/main/gen/schema/schema.yaml) might provide some additional hints in terms of what each definition attribute is being used for.
If I understand you correctly, you want to access/expose a nested attribute in the API payload, which would work like this:
attributes:
- model_name: gateway
data_path: [managementBootstrap, ipv4]
type: String
example: 10.1.1.2
- model_name: mask
data_path: [managementBootstrap, ipv4]
type: String
example: 255.255.255.0
Hello,
There is the "old style" provider at https://registry.terraform.io/providers/CiscoDevNet/fmc . However, this does not support all the features we require. Expecially all the Chassis API endpoints are missing. Extending this new provider seems much easier, but I can use some guidance here.
This provider has YAML generator files, similar to the ASR provider. When implementing the features we require, I run into issues with multi-line parameters/examples. I have tried multiple ways of ways of constructing the
example
attribute values, but nothing seems to work.Here is the endpoint to be added:
The above YAML code is not complete.
Example
needs to be added as well, and this is where the issue is.This is a snippet of the JSON that needs to be generated:
And now the "example" part of the generator file.
example with
\n\n
for newlinesThis is similar to https://github.com/CiscoDevNet/terraform-provider-iosxr/blob/main/gen/definitions/as_path_set.yaml#L11
The issues seems that the double quotes in the value of "management_bootstrap" are missing. But I am not sure if the \n\n for newlines is the correct format in the first place.
example in YAML:
Can you provide an example how multiline attribute values should look like?