This commit is contained in:
asteam
2025-07-01 13:44:09 +03:00
parent 5382579a5f
commit ddbb12996d
1041 changed files with 2842 additions and 96448 deletions

View File

@@ -93,6 +93,11 @@ var ItemNatRuleResource = map[string]attr.Type{
"rule_id": types.Int64Type,
}
var ItemExtNet = map[string]attr.Type{
"ext_net_id": types.Int64Type,
"ext_net_ip": types.StringType,
}
// Contains returns true if NatRuleResourceModel contains n as an element. Otherwise it returns false.
func (n *NatRuleResourceModel) Contains(natRuleList []NatRuleResourceModel) bool {
for _, natRuleElem := range natRuleList {