diff --git a/apstra/system_agents/managed_device.go b/apstra/system_agents/managed_device.go index 6515663e..8f05be41 100644 --- a/apstra/system_agents/managed_device.go +++ b/apstra/system_agents/managed_device.go @@ -34,7 +34,7 @@ func (o *ManagedDevice) Request(_ context.Context, _ *diag.Diagnostics) *apstra. AgentTypeOffbox: apstra.AgentTypeOffbox(o.OffBox.ValueBool()), ManagementIp: o.ManagementIp.ValueString(), Profile: apstra.ObjectId(o.AgentProfileId.ValueString()), - OperationMode: apstra.AgentModeFull, + OperationMode: apstra.SystemManagementLevelFullControl, } } diff --git a/go.mod b/go.mod index 87bd9805..21875c14 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.20 require ( github.com/IBM/netaddr v1.5.0 - github.com/Juniper/apstra-go-sdk v0.0.0-20231115202102-f47b2a337343 + github.com/Juniper/apstra-go-sdk v0.0.0-20231116225553-76b857dfe9d0 github.com/chrismarget-j/go-licenses v0.0.0-20230424163011-d60082a506e0 github.com/google/go-cmp v0.5.9 github.com/hashicorp/go-version v1.6.0 diff --git a/go.sum b/go.sum index 57d3e44c..691f965a 100644 --- a/go.sum +++ b/go.sum @@ -63,8 +63,8 @@ github.com/BurntSushi/toml v1.2.1/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbi github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= github.com/IBM/netaddr v1.5.0 h1:IJlFZe1+nFs09TeMB/HOP4+xBnX2iM/xgiDOgZgTJq0= github.com/IBM/netaddr v1.5.0/go.mod h1:DDBPeYgbFzoXHjSz9Jwk7K8wmWV4+a/Kv0LqRnb8we4= -github.com/Juniper/apstra-go-sdk v0.0.0-20231115202102-f47b2a337343 h1:3IjYe4tNs8D+kpyo8FhORo/fpR4w7R1oxxBx4GknpIc= -github.com/Juniper/apstra-go-sdk v0.0.0-20231115202102-f47b2a337343/go.mod h1:BB8X+PSov7CoCIAQ5P1z8bHc7DwtDN51fWCLJ93oeHY= +github.com/Juniper/apstra-go-sdk v0.0.0-20231116225553-76b857dfe9d0 h1:eGDv3DBIRDl8r14Ot2uew5Fr7YpAJFav2Snufb2j2Jg= +github.com/Juniper/apstra-go-sdk v0.0.0-20231116225553-76b857dfe9d0/go.mod h1:BB8X+PSov7CoCIAQ5P1z8bHc7DwtDN51fWCLJ93oeHY= github.com/Masterminds/goutils v1.1.1 h1:5nUrii3FMTL5diU80unEVvNevw1nH4+ZV4DSLVJLSYI= github.com/Masterminds/goutils v1.1.1/go.mod h1:8cTjp+g8YejhMuvIA5y2vz3BpJxksy863GQaJW2MFNU= github.com/Masterminds/semver/v3 v3.1.1 h1:hLg3sBzpNErnxhQtUy/mmLR2I9foDujNK030IGemrRc=