Skip to content

Commit

Permalink
fix(wireguard_peer): Need new filed 'is-responder' in resource 'route…
Browse files Browse the repository at this point in the history
…ros_interface_wireguard_peer'

Fixes #530
  • Loading branch information
vaerh committed Aug 7, 2024
1 parent 9d46a55 commit a31a394
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions routeros/resource_interface_wireguard_peer.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,15 @@ func ResourceInterfaceWireguardPeer() *schema.Resource {
Description: "An endpoint port can be left blank to allow remote connection from any port.",
},
KeyInterface: PropInterfaceRw,
"is_responder": {
Type: schema.TypeBool,
Optional: true,
Description: "Specifies if peer is intended to be connection initiator or only responder. Should be used on " +
"WireGuard devices that are used as `servers` for other devices as clients to connect to. Otherwise " +
"router will all repeatedly try to connect `endpoint-address` or `current-endpoint-address` causing " +
"unnecessary system logs to be written.",
DiffSuppressFunc: AlwaysPresentNotUserProvided,
},
"last_handshake": {
Type: schema.TypeString,
Computed: true,
Expand Down

0 comments on commit a31a394

Please sign in to comment.