Skip to content

Error : While creating IP SLA using RESTCONF #224

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

Open
syed-munazzir opened this issue Mar 28, 2025 · 0 comments
Open

Error : While creating IP SLA using RESTCONF #224

syed-munazzir opened this issue Mar 28, 2025 · 0 comments

Comments

@syed-munazzir
Copy link

syed-munazzir commented Mar 28, 2025

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:[]}}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant