@@ -166,6 +166,12 @@ func resourceSwitchAclEgress() *schema.Resource {
166166 Optional : true ,
167167 Computed : true ,
168168 },
169+ "remark_cos" : & schema.Schema {
170+ Type : schema .TypeInt ,
171+ ValidateFunc : validation .IntBetween (0 , 7 ),
172+ Optional : true ,
173+ Computed : true ,
174+ },
169175 },
170176 },
171177 },
@@ -514,6 +520,12 @@ func flattenSwitchAclEgressAction(v interface{}, d *schema.ResourceData, pre str
514520 result ["outer_vlan_tag" ] = flattenSwitchAclEgressActionOuterVlanTag (i ["outer-vlan-tag" ], d , pre_append , sv )
515521 }
516522
523+ pre_append = pre + ".0." + "remark_cos"
524+ if _ , ok := i ["remark-cos" ]; ok {
525+
526+ result ["remark_cos" ] = flattenSwitchAclEgressActionRemarkCos (i ["remark-cos" ], d , pre_append , sv )
527+ }
528+
517529 lastresult := []map [string ]interface {}{result }
518530 return lastresult
519531}
@@ -553,6 +565,13 @@ func flattenSwitchAclEgressActionOuterVlanTag(v interface{}, d *schema.ResourceD
553565 return v
554566}
555567
568+ func flattenSwitchAclEgressActionRemarkCos (v interface {}, d * schema.ResourceData , pre string , sv string ) interface {} {
569+ if v == "" || v == "none" || reflect .DeepEqual (v , []interface {}{}) {
570+ return nil
571+ }
572+ return v
573+ }
574+
556575func flattenSwitchAclEgressInterface (v interface {}, d * schema.ResourceData , pre string , sv string ) interface {} {
557576 return v
558577}
@@ -840,6 +859,11 @@ func expandSwitchAclEgressAction(d *schema.ResourceData, v interface{}, pre stri
840859
841860 result ["outer-vlan-tag" ], _ = expandSwitchAclEgressActionOuterVlanTag (d , i ["outer_vlan_tag" ], pre_append , sv )
842861 }
862+ pre_append = pre + ".0." + "remark_cos"
863+ if _ , ok := d .GetOk (pre_append ); ok {
864+
865+ result ["remark-cos" ], _ = expandSwitchAclEgressActionRemarkCos (d , i ["remark_cos" ], pre_append , sv )
866+ }
843867
844868 return result , nil
845869}
@@ -876,6 +900,10 @@ func expandSwitchAclEgressActionOuterVlanTag(d *schema.ResourceData, v interface
876900 return v , nil
877901}
878902
903+ func expandSwitchAclEgressActionRemarkCos (d * schema.ResourceData , v interface {}, pre string , sv string ) (interface {}, error ) {
904+ return v , nil
905+ }
906+
879907func expandSwitchAclEgressInterface (d * schema.ResourceData , v interface {}, pre string , sv string ) (interface {}, error ) {
880908 return v , nil
881909}
0 commit comments