Closed grg1bbs closed 9 months ago
When testing the Device Admin policy set config, I found the example of defining the dictionary_name in the attribute_name. I confirmed that this method works in my Network Access Policy Set block.
The documentation should make it clear how to define these settings.
policy_sets:
- name: Wired MM
description: Wired Monitor Mode
condition:
type: ConditionAndBlock
children:
- type: ConditionAttributes
attribute_name: Radius:NAS-Port-Type
operator: equals
attribute_value: Ethernet
- type: ConditionAttributes
attribute_name: DEVICE:Deployment Stage
operator: equals
attribute_value: Deployment Stage#Monitor Mode
service_name: MAB_Dot1x
Confirmed fixed with the separation of the dictionary_name attribute in the latest branch
When creating a Policy Set with nested conditions, TF throws a Client Error due to missing dictionaryName values. The values exist in the YAML, but the terraform plan does not show the 'dictionary_name' or 'dictionary_value' attributes.
Depending on the dictionary and condition being configured, the dictionary_value is not always null.
Example YAML code
Plan & Client Error
Example TF code