diff --git a/models/appd_rule_config.go b/models/appd_rule_config.go index e6b9221fa539f0d8c374c7ba02bdd7dbcca3f30d..e78471247cfcad0f9e8bcb5ff3459595dce508ec 100644 --- a/models/appd_rule_config.go +++ b/models/appd_rule_config.go @@ -64,7 +64,7 @@ type AppTrafficRule struct { TrafficRuleId string `orm:"pk" json:"trafficRuleId" validate:"required,max=128"` FilterType string `json:"filterType" validate:"required,oneof=FLOW PACKET"` Priority int `json:"priority" validate:"required,gt=0,max=255"` - Action string `json:"action" validate:"required,oneof=DROP PASSTHROUGH"` + Action string `json:"action" validate:"required,oneof=DROP PASSTHROUGH FORWARD_DECAPSULATED FORWARD_AS_IS DUPLICATED_DECAPSULATED DUPLICATE_AS_IS"` AppTrafficFilter []TrafficFilter `orm:"reverse(many);on_delete(set_null)" json:"trafficFilter" validate:"required,dive"` DstInterface []DstInterface `orm:"reverse(many);on_delete(set_null)" json:"dstInterface" validate:"omitempty,dive"` } @@ -166,7 +166,7 @@ type AppTrafficRuleRec struct { TrafficRuleId string `orm:"pk" json:"trafficRuleId" validate:"required,max=128"` FilterType string `json:"filterType" validate:"required,oneof=FLOW PACKET"` Priority int `json:"priority" validate:"required,gt=0,max=255"` - Action string `json:"action" validate:"required,oneof=DROP PASSTHROUGH"` + Action string `json:"action" validate:"required,oneof=DROP PASSTHROUGH FORWARD_DECAPSULATED FORWARD_AS_IS DUPLICATED_DECAPSULATED DUPLICATE_AS_IS"` AppTrafficFilterRec []*TrafficFilterRec `orm:"reverse(many);on_delete(set_null)" json:"trafficFilter" validate:"required,dive"` DstInterfaceRec []*DstInterfaceRec `orm:"reverse(many);on_delete(set_null)" json:"dstInterface" validate:"omitempty,dive"` AppdRule *AppdRuleRec `orm:"rel(fk)"`