From 3d147f5833e4471871f2fea5dbb28005224d7646 Mon Sep 17 00:00:00 2001 From: "shashikanth.vh@huawei.com" Date: Mon, 24 Jan 2022 10:46:24 +0530 Subject: [PATCH] added DROP PASSTHROUGH FORWARD_DECAPSULATED FORWARD_AS_IS DUPLICATED_DECAPSULATED DUPLICATE_AS_IS to traffic action --- models/appd_rule_config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/models/appd_rule_config.go b/models/appd_rule_config.go index e6b9221..e784712 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)"` -- Gitee