-
-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provider update #429
base: main
Are you sure you want to change the base?
Provider update #429
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NATiveNetworkID looks like it was named incorrectly, is it intentional?
@@ -372,6 +379,7 @@ func toPortOverride(data map[string]interface{}) (unifi.DevicePortOverrides, err | |||
OpMode: opMode, | |||
PoeMode: poeMode, | |||
AggregateNumPorts: aggregateNumPorts, | |||
NATiveNetworkID: nativeNetworkID, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NATiveNetworkID: nativeNetworkID, | |
NativeNetworkID: nativeNetworkID, |
@@ -383,6 +391,7 @@ func fromPortOverride(po unifi.DevicePortOverrides) (map[string]interface{}, err | |||
"op_mode": po.OpMode, | |||
"poe_mode": po.PoeMode, | |||
"aggregate_num_ports": po.AggregateNumPorts, | |||
"native_network_id": po.NATiveNetworkID, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"native_network_id": po.NATiveNetworkID, | |
"native_network_id": po.NativeNetworkID, |
Isolation: d.Get("isolation").(bool), | ||
LldpmedEnabled: d.Get("lldpmed_enabled").(bool), | ||
LldpmedNotifyEnabled: d.Get("lldpmed_notify_enabled").(bool), | ||
NATiveNetworkID: d.Get("native_networkconf_id").(string), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NATiveNetworkID: d.Get("native_networkconf_id").(string), | |
NativeNetworkID: d.Get("native_networkconf_id").(string), |
LldpmedEnabled bool `json:"lldpmed_enabled,omitempty"` | ||
LldpmedNotifyEnabled bool `json:"lldpmed_notify_enabled,omitempty"` | ||
MirrorPortIDX int `json:"mirror_port_idx,omitempty"` // [1-9]|[1-4][0-9]|5[0-2] | ||
NATiveNetworkID string `json:"native_networkconf_id,omitempty"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NATiveNetworkID string `json:"native_networkconf_id,omitempty"` | |
NativeNetworkID string `json:"native_networkconf_id,omitempty"` |
This bundles a couple of updates:
I've also published a version of this provider from my fork that incorporates the above: https://registry.terraform.io/providers/akerl/unifi/latest
I did this largely for my own benefit, since I use this module and didn't want to have to manually install it, but if it's useful for other folks, all the better.