-
Notifications
You must be signed in to change notification settings - Fork 38
Description
Hi @danischm
Could you please assist me with the following issue? I'm trying to create an IPS SLA using RESTCONF, but I keep encountering an error.
Any guidance or insights would be greatly appreciated. Please let me know if you need additional details or logs
resource "iosxe_restconf" "ip_sla" {
path = "Cisco-IOS-XE-native:native/ip/sla"
lists = [
{
name = "entry"
key = "number"
items = [
{
"number" = "1"
"icmp-echo/destination" = "3.3.3.3"
"icmp-echo/frequency" = "10"
},
{
"number" = "2"
"icmp-echo/destination" = "4.4.4.4"
"icmp-echo/frequency" = "10"
},
{
"number" = "10"
"icmp-echo/destination" = "10.10.10.10"
"icmp-echo/frequency" = "30"
},
]
}
]
}
ERROR :
╷
│ Error: Client Error
│
│ with iosxe_restconf.ip_sla,
│ on main.tf line 73, in resource "iosxe_restconf" "ip_sla":
│ 73: resource "iosxe_restconf" "ip_sla" {
│
│ Failed to configure object (PATCH), got error: HTTP Request failed: StatusCode 400, RESTCONF errors {Error:[{ErrorType:application ErrorTag:malformed-message
│ ErrorAppTag: ErrorPath:/Cisco-IOS-XE-native:native/ip/Cisco-IOS-XE-sla:sla ErrorMessage:0: Internal error ErrorInfo:}]} {PatchId: GlobalStatus:{Ok:false
│ Errors:{Error:[]}} EditStatus:{Edit:[]} Errors:{Error:[]}}
╵