Skip to content

Commit

Permalink
fix(cloud): Add missing field
Browse files Browse the repository at this point in the history
Fixes #331
  • Loading branch information
vaerh committed Jan 25, 2024
1 parent 48018c4 commit 235e3b0
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion routeros/resource_ip_cloud.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,20 @@ import (
*/

// https://wiki.mikrotik.com/wiki/Manual:IP/Cloud
// https://help.mikrotik.com/docs/display/ROS/Cloud
func ResourceIpCloud() *schema.Resource {
resSchema := map[string]*schema.Schema{
MetaResourcePath: PropResourcePath("/ip/cloud"),
MetaId: PropId(Id),

// https://help.mikrotik.com/docs/display/ROS/Back+To+Home
"back_to_home_vpn": {
Type: schema.TypeString,
Optional: true,
Description: "Enables or revokes and disables the Back to Home service. ddns-enabled has to be set to " +
"yes, for BTH to function.",
DiffSuppressFunc: AlwaysPresentNotUserProvided,
},
"ddns_enabled": {
Type: schema.TypeBool,
Optional: true,
Expand Down Expand Up @@ -65,7 +74,7 @@ func ResourceIpCloud() *schema.Resource {
Description: "Shows device's IPv4 address that was sent to cloud server. This field is visible only " +
"after at least one IP Cloud request was successfully completed.",
},
"public_address_ivp6": {
"public_address_ipv6": {
Type: schema.TypeString,
Computed: true,
Description: "Shows device's IPv6 address that was sent to cloud server. This field is visible only " +
Expand Down

0 comments on commit 235e3b0

Please sign in to comment.