diff --git a/CHANGELOG.md b/CHANGELOG.md index 161fad4f..0dd87cfa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,15 @@ +## [1.44.0](https://github.com/terraform-routeros/terraform-provider-routeros/compare/v1.43.0...v1.44.0) (2024-04-04) + + +### Features + +* Add `routeros_capsman_interface` resource to manage CAPsMAN interfaces ([65b9717](https://github.com/terraform-routeros/terraform-provider-routeros/commit/65b9717b8afa7d218012f613af88c53fe0a21063)) + + +### Bug Fixes + +* Fix inline configuration properties not to update when untouched in `routeros_capsman_configuration` resources ([e2a5b55](https://github.com/terraform-routeros/terraform-provider-routeros/commit/e2a5b5527a77a99a84f35e8381a59add6ab63d11)) + ## [1.43.0](https://github.com/terraform-routeros/terraform-provider-routeros/compare/v1.42.0...v1.43.0) (2024-04-01) diff --git a/docs/resources/capsman_interface.md b/docs/resources/capsman_interface.md new file mode 100644 index 00000000..a4205244 --- /dev/null +++ b/docs/resources/capsman_interface.md @@ -0,0 +1,58 @@ +# routeros_capsman_interface (Resource) + + +## Example Usage +```terraform +resource "routeros_capsman_channel" "channel1" { + name = "1" + band = "2ghz-g/n" + frequency = 2412 +} + +resource "routeros_capsman_interface" "cap1" { + name = "cap1" + + channel = { + config = routeros_capsman_channel.channel1.name + } +} +``` + + +## Schema + +### Required + +- `name` (String) Name of the interface. + +### Optional + +- `arp_timeout` (String) ARP timeout is time how long ARP record is kept in ARP table after no packets are received from IP. Value auto equals to the value of arp-timeout in IP/Settings, default is 30s. Can use postfix ms, s, M, h, d for milliseconds, seconds, minutes, hours or days. If no postfix is set then seconds (s) is used. +- `channel` (Map of String) Channel inline settings. +- `comment` (String) +- `configuration` (Map of String) Configuration inline settings. +- `datapath` (Map of String) Datapath inline settings. +- `disabled` (Boolean) +- `mac_address` (String) MAC address (BSSID) to use for the interface. +- `master_interface` (String) The corresponding master interface of the virtual one. +- `radio_mac` (String) The MAC address of the associated radio. +- `radio_name` (String) Name of the associated radio. +- `rates` (Map of String) Rates inline settings. +- `security` (Map of String) Security inline settings. + +### Read-Only + +- `bound` (Boolean) A flag whether the interface is currently available for the CAPsMAN. +- `id` (String) The ID of this resource. +- `inactive` (Boolean) A flag whether the interface is currently inactive. +- `l2mtu` (Number) Layer2 Maximum transmission unit. [See](https://wiki.mikrotik.com/wiki/Maximum_Transmission_Unit_on_RouterBoards). +- `master` (Boolean) A flag whether the interface is not a virtual one. +- `running` (Boolean) A flag whether the interface has established a link to another device. + +## Import +Import is supported using the following syntax: +```shell +#The ID can be found via API or the terminal +#The command for the terminal is -> :put [/caps-man/interface get [print show-ids]] +terraform import routeros_capsman_interface.cap1 '*1' +``` diff --git a/package.json b/package.json index d7588f85..fb2be53f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "terraform-provider-routeros", - "version": "1.43.0", + "version": "1.44.0", "repository": { "type": "git", "url": "https://github.com/terraform-routeros/terraform-provider-routeros"