File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -103,6 +103,16 @@ func setSubjectFilterAttributes(vzRsSubjFiltAtt *models.SubjectFilter, d *schema
103103 for _ , val := range strings .Split (vzRsSubjFiltAttMap ["directives" ], "," ) {
104104 directivesGet = append (directivesGet , strings .Trim (val , " " ))
105105 }
106+ // The "none" value in directives does not get returned by APIC.
107+ // Add "none" if the user has defined the value in the directives attributes.
108+ if userDirectives , ok := d .GetOk ("directives" ); ok {
109+ for _ , val := range userDirectives .([]interface {}) {
110+ if val .(string ) == "none" {
111+ directivesGet = append (directivesGet , "none" )
112+ break
113+ }
114+ }
115+ }
106116 d .Set ("directives" , directivesGet )
107117 d .Set ("priority_override" , vzRsSubjFiltAttMap ["priorityOverride" ])
108118 d .Set ("filter_dn" , vzRsSubjFiltAttMap ["tDn" ])
You can’t perform that action at this time.
0 commit comments