Skip to content

wtp-mode is read only when creating / modifying fortios_wirelesscontroller_wtp #400

@rfranks-securenet

Description

@rfranks-securenet

When creating a WTP with the resource fortios_wirelesscontroller_wtp, and specifying the wtp_mode as remote, I get an error.

Once I have created it, leaving out the wtp_mode parameter, if I try to reapply, I get the same error, and this time have to put in wtp_mode to remote to match the setting on the FortiGate itself

On first creation:

Not working

resource fortios_wirelesscontroller_wtp ap {
  wtp_id                                = "<serial_number>"
  name                                  = "test-ap"
  wtp_mode                              = "remote"
  wtp_profile                           = "myProfile"
}
│ Error: Error creating WirelessControllerWtp resource: Internal Server Error - Internal error when processing the request (500)
│ Cli response: 
│ [wtp-mode is read only. wtp-mode is read only. Command fail. Return code -651]

Working

resource fortios_wirelesscontroller_wtp ap {
  wtp_id                                = "<serial_number>"
  name                                  = "test-ap"
  wtp_profile                           = "myProfile"
}

On update

Not working

resource fortios_wirelesscontroller_wtp ap {
  wtp_id                                = "<serial_number>"
  name                                  = "test-ap"
  wtp_profile                           = "myProfile"
}
│ Error: Error updating WirelessControllerWtp resource: Internal Server Error - Internal error when processing the request (500)
│ Cli response: 
│ [wtp-mode is read only. wtp-mode is read only. Command fail. Return code -651]

Working

resource fortios_wirelesscontroller_wtp ap {
  wtp_id                                = "<serial_number>"
  name                                  = "test-ap"
  wtp_mode                              = "remote"
  wtp_profile                           = "myProfile"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions