Commit Graph

41 Commits

Author SHA1 Message Date
Mateusz Filipowicz
f5bd8ebb15 feat: switch to filipowm/go-unifi UniFi SDK client (#20)
* feat: switch to filipowm/go-unifi UniFi SDK client

* disable validation in tests

* replace usage of APIError by ServerError

* bump go-unifi to 1.4.0
2025-02-23 17:07:03 +01:00
Mateusz Filipowicz
4c3d5830ad feat: remove unused firewall properties from settings usg 2025-02-07 01:09:36 +01:00
Mateusz Filipowicz
b19314bc6e use filipowm/go-unifi instead of paultyng/go-unifi 2025-02-07 01:09:36 +01:00
Mateusz Filipowicz
708d73eb6b feat: add enabled flag 2025-02-07 01:09:36 +01:00
Mateusz Filipowicz
5e4894c114 chore: tidying up dependencies 2025-02-07 01:09:36 +01:00
Mateusz Filipowicz
7e222cb061 feat: add network_isolation_enabled and deprecate intra_network_access_enabled 2025-02-07 01:09:36 +01:00
Xabier Larrakoetxea Gallego
dc95eceb2e Add support for mDNS on network resource (#292)
* Add support for mDNS on network resource

Signed-off-by: Xabier Larrakoetxea <me@slok.dev>

* Add mDSN network tests

Signed-off-by: Xabier Larrakoetxea <me@slok.dev>

---------

Signed-off-by: Xabier Larrakoetxea <me@slok.dev>
2023-02-25 10:05:48 +11:00
Paul Tyng
c65954205a Fix priority validation
Fixes #289
2022-10-24 13:13:17 -04:00
Andreas Harter
0604e1deaf Add missing IPv6 properties (#261)
* Add missing WAN IPv6 properties to network resource

* Rename 'ipv6_static_subnet' to 'ipv6_subnet'

According to the go-unifi lib, the name was incorrect

* Improve description and validation of IPv6 properties

* Add missing IPv6 props to network

* Add IPv6 support to firewall rules

* Adjust naming

* ensure unique vlan

* Add vlan ID validation

* fix assertion

* Update docs

* rename attribute

* cleanup imports

* test protocol_v6

* test dhcp_v6_lease

* spelling

* switch protocol back

Co-authored-by: Paul Tyng <paul@paultyng.net>
2022-10-22 12:56:56 -04:00
Paul Tyng
0d4dc04428 unifi_network - default network access bools to true
* Expose InternetAccessEnabled and IntraNetworkAccessEnabled

* Generate docs

* bump go-unifi to v1.27.0

* ammend tf and unifi versions

* fix minrate preference setting in 7.2

* fix

* try some additional tf 1.3 versions  to see why they are failing

* Bump sdk version to fix import test bug

Co-authored-by: Dillon Newell <dillon@newell-labs.ca>
2022-10-20 11:54:03 -04:00
Paul Tyng
5ed5e82b08 Add support for DHCP relay
Fixes #148
2021-09-13 08:22:01 -04:00
Paul Tyng
a3094fb13c Apply suggestions from code review 2021-08-10 10:30:26 -04:00
Michael Wiesenbauer
4c36a8af1b move from deprecated CRUD functions to context aware CRUD 2021-08-10 10:30:26 -04:00
Paul Tyng
741d44f0c0 Some minor adjustments to PR 2021-06-01 19:07:59 -04:00
Alan Jenkins
5f4a14e64f DHCPD Boot Server / Filename
Allows setting the DHCPD boot server and filename attributes of Networks
to enable PXE booting.
2021-06-01 19:07:59 -04:00
Wojciech Dubiel
513fd29865 Implement static WAN configuration in unifi_network 2021-03-21 16:47:22 -04:00
Joshua Spence
0409579c68 Add wan_dns1 and wan_dns2 (#117) 2021-03-21 16:27:28 -04:00
Lyle Franklin
2694fcb3f5 Support importing networks by name (#113)
- E.g. `terraform import unifi_network.mynetwork name=LAN`
- Bumps cidr prefix in tests to avoid:
    Call to function "cidrsubnet" failed: prefix extension of 4 does not
    accommodate a subnet numbered 18.
2021-03-21 16:17:13 -04:00
Paul Tyng
d831b3cad9 Fix docs on wan_type
This was mentioned in #107
2021-03-07 14:26:41 -05:00
Paul Tyng
6f91e578f3 Fix wan_type flapping
Fixes #99
2021-03-07 11:23:10 -05:00
amiga23
ee7dccccf5 Remove default on wan_type on resource_network 2021-02-02 20:59:57 -05:00
Kurt McAlpine
bfe4382722 Support importing networks and wlans from other sites 2020-11-03 19:20:26 -05:00
Kurt McAlpine
455ca423cc Add site support to resources (#79)
* Add site attribute to all resources and data sourcess
* Add test to exercise site attribute on network resource
2020-10-29 16:44:05 -04:00
Ben Davies
cbc9bdc85f Added basic WAN support, including WAN type, network group, WAN IP, username and password 2020-10-21 09:35:29 -04:00
Paul Tyng
a521ca89d6 Cleanup ID usage in docs 2020-10-16 21:24:15 -04:00
Paul Tyng
8f33b7cf94 Add support for CIDR in port forwarding source
Fixes #40
2020-09-20 21:03:06 -04:00
Paul Tyng
b2d5d5ee93 Add IPv6 support to unifi_network (#47)
* add support for adding IPv6 to a network

* quote value in the network test

* change tests to use static prefix

* minor fix for sdkv2

Co-authored-by: Alex Hanselka <alex@darkdna.net>
2020-08-27 22:49:04 -04:00
Paul Tyng
46709ebf37 Docs updates, more examples, some tool updates
Change docs dirs based on registry expectations
2020-06-29 22:49:13 -04:00
Paul Tyng
accc02a8a5 Add examples / descriptions and generate website 2020-05-22 21:16:46 -04:00
Paul Tyng
db255773e6 Change dhcp_dns to list, add tests 2020-05-16 22:50:00 -04:00
Doug Ferris
c9b211b1af Initial commit of supporting dns 2020-05-16 22:50:00 -04:00
Paul Tyng
9ab8feb357 Add additional descriptions 2020-04-13 10:05:45 -04:00
Paul Tyng
b4fcb3fed2 Bump to version 2 SDK 2020-04-13 10:05:45 -04:00
Paul Tyng
96e50cd976 Bump to go-unifi 1.2.0
Add context.TODO to prep for SDKv2
2020-03-26 16:26:59 -04:00
Paul Tyng
fc397f9992 Minor refactoring / cleanup on unifi_port_forward 2020-03-05 13:24:27 -05:00
Paul Tyng
1a67188feb Add unifi_user ip and hostname
Bump go-unifi to 1.1.0
2020-02-19 12:53:40 -05:00
Paul Tyng
a15c8bff6e Add support for igmp_snooping 2020-01-11 20:06:50 -05:00
Paul Tyng
de1e9be7ec Extract SDK to new repo
https://github.com/paultyng/go-unifi

Closes #3
2020-01-10 14:42:58 -05:00
Paul Tyng
0484fb041b Add domain_name to unifi_network
Also fix up some generated acronyms
2020-01-04 20:50:17 -05:00
Paul Tyng
b3d435d80f Experimenting with generating the SDK 2020-01-04 13:44:36 -05:00
Paul Tyng
881eadcf21 Make provider package internal 2019-12-31 01:22:43 -05:00