feat: add destination.network_ids support to unifi_firewall_zone_policy

- Add NetworkIDs and MatchOppositeNetworks to destination model
  - Add network_ids schema attribute to destination block
  - Handle NETWORK matching target in AsUnifiModel and mergeDestination
  - Update go.mod to use shadyeip/go-unifi fork with destination network support
This commit is contained in:
shadyeip
2026-02-05 15:30:21 -05:00
parent 61ff63c1d7
commit 4de7c8c5ec
2 changed files with 5 additions and 1 deletions

2
go.mod
View File

@@ -426,3 +426,5 @@ require (
sigs.k8s.io/yaml v1.4.0 // indirect
tags.cncf.io/container-device-interface v0.8.1 // indirect
)
replace github.com/filipowm/go-unifi => github.com/shadyeip/go-unifi v1.8.1

2
go.sum
View File

@@ -830,6 +830,8 @@ github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3 h1:n661drycOFuPLCN
github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3/go.mod h1:A0bzQcvG0E7Rwjx0REVgAGH58e96+X0MeOfepqsbeW4=
github.com/serialx/hashring v0.0.0-20200727003509-22c0c7ab6b1b h1:h+3JX2VoWTFuyQEo87pStk/a99dzIO1mM9KxIyLPGTU=
github.com/serialx/hashring v0.0.0-20200727003509-22c0c7ab6b1b/go.mod h1:/yeG0My1xr/u+HZrFQ1tOQQQQrOawfyMUH13ai5brBc=
github.com/shadyeip/go-unifi v1.8.1 h1:sjigrGs7985w9IjbRoNGnRBeon1CsRfSN367fxaIaCM=
github.com/shadyeip/go-unifi v1.8.1/go.mod h1:hf0HZI8SX/h6vEa0BQzxY8Bpm4enbRmrPJ1DFFt6/4A=
github.com/shibumi/go-pathspec v1.3.0 h1:QUyMZhFo0Md5B8zV8x2tesohbb5kfbpTi9rBnKh5dkI=
github.com/shibumi/go-pathspec v1.3.0/go.mod h1:Xutfslp817l2I1cZvgcfeMQJG5QnU2lh5tVaaMCl3jE=
github.com/shirou/gopsutil/v3 v3.24.5 h1:i0t8kL+kQTvpAYToeuiVk3TgDeKOFioZO3Ztz/iZ9pI=