feat: support list of MAC addresses for Firewall Zone Policy (#56)
This commit is contained in:
committed by
GitHub
parent
1def1e4ec4
commit
12bf4bae30
@@ -44,6 +44,7 @@
|
|||||||
"client_macs": ["^([0-9A-Fa-f]{2}:){5}([0-9A-Fa-f]{2})$"],
|
"client_macs": ["^([0-9A-Fa-f]{2}:){5}([0-9A-Fa-f]{2})$"],
|
||||||
"ip_group_id": "",
|
"ip_group_id": "",
|
||||||
"ips": ["^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^$"],
|
"ips": ["^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^$"],
|
||||||
|
"macs": ["^([0-9A-Fa-f]{2}:){5}([0-9A-Fa-f]{2})$"],
|
||||||
"mac": "^([0-9A-Fa-f]{2}:){5}([0-9A-Fa-f]{2})$",
|
"mac": "^([0-9A-Fa-f]{2}:){5}([0-9A-Fa-f]{2})$",
|
||||||
"match_mac": "true|false",
|
"match_mac": "true|false",
|
||||||
"match_opposite_ports": "true|false",
|
"match_opposite_ports": "true|false",
|
||||||
|
|||||||
1
unifi/firewall_zone_policy.generated.go
generated
1
unifi/firewall_zone_policy.generated.go
generated
@@ -132,6 +132,7 @@ type FirewallZonePolicySource struct {
|
|||||||
IPGroupID string `json:"ip_group_id,omitempty"`
|
IPGroupID string `json:"ip_group_id,omitempty"`
|
||||||
IPs []string `json:"ips,omitempty" validate:"omitempty,ipv4"` // ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^$
|
IPs []string `json:"ips,omitempty" validate:"omitempty,ipv4"` // ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^$
|
||||||
MAC string `json:"mac,omitempty" validate:"omitempty,mac"` // ^([0-9A-Fa-f]{2}:){5}([0-9A-Fa-f]{2})$
|
MAC string `json:"mac,omitempty" validate:"omitempty,mac"` // ^([0-9A-Fa-f]{2}:){5}([0-9A-Fa-f]{2})$
|
||||||
|
MACs []string `json:"macs,omitempty" validate:"omitempty,mac"` // ^([0-9A-Fa-f]{2}:){5}([0-9A-Fa-f]{2})$
|
||||||
MatchMAC bool `json:"match_mac"`
|
MatchMAC bool `json:"match_mac"`
|
||||||
MatchOppositeIPs bool `json:"match_opposite_ips"`
|
MatchOppositeIPs bool `json:"match_opposite_ips"`
|
||||||
MatchOppositeNetworks bool `json:"match_opposite_networks"`
|
MatchOppositeNetworks bool `json:"match_opposite_networks"`
|
||||||
|
|||||||
Reference in New Issue
Block a user