terraform-provider-iosxe icon indicating copy to clipboard operation
terraform-provider-iosxe copied to clipboard

Deployment errors with iosxe provider after upgrading to 0.9.3

Open jimparker96 opened this issue 2 months ago • 4 comments

Errors with resource "iosxe_cli"

Cisco software version 17_13_01a-payg-advantage

Works fine on provider 0.9.0

But on 0.9.3 i get errors when deploying...

Error #1 Error: Client Error │ │ with iosxe_cli.c8000v1, │ on ram_router_c8000v1_cli.tf line 177, in resource "iosxe_cli" "c8000v1_": │ 177: resource "iosxe_cli" "c8000v1_" { │ │ Failed to send CLI commands, got error: HTTP Request failed: StatusCode 400, RESTCONF errors {Error:[{ErrorType:application ErrorTag:invalid-value ErrorAppTag: │ ErrorPath:/Cisco-IOS-XE-cli-rpc:config-ios-cli-trans ErrorMessage:inconsistent value: Failed to load commands via transaction: external error, line │ syntax error: "console" is not a valid value. │ Error: on line 2: line console 0 │ ErrorInfo:}]} {PatchId: GlobalStatus:{Ok:false Errors:{Error:[]}} EditStatus:{Edit:[]} Errors:{Error:[]}}

Error #2 │ Error: Client Error │ │ with iosxe_cli.c8000v1, │ on ram_router_c8000v1_cli.tf line 177, in resource "iosxe_cli" "c8000v1": │ 177: resource "iosxe_cli" "c8000v1" { │ │ Failed to send CLI commands, got error: HTTP Request failed: StatusCode 400, RESTCONF errors {Error:[{ErrorType:application ErrorTag:invalid-value ErrorAppTag: │ ErrorPath:/Cisco-IOS-XE-cli-rpc:config-ios-cli-trans ErrorMessage:inconsistent value: Failed to load commands via transaction: external error, tunnel │ syntax error: element does not exist │ Error: on line 27: tunnel vxlan vni 10 │ ErrorInfo:}]} {PatchId: GlobalStatus:{Ok:false Errors:{Error:[]}} EditStatus:{Edit:[]} Errors:{Error:[]}}

Config:

resource "iosxe_cli" "c8000v1" { provider = iosxe.c8000v1 cli = <<-EOT ! line console 0 exec-timeout 60 0 ! line vty 0 4 exec-timeout 60 0 ! hostname c8000v1 ! interface GigabitEthernet1 ip address dhcp no shutdown ! interface GigabitEthernet2 ip address dhcp no shutdown ! interface GigabitEthernet3 ip address dhcp no shutdown ! interface Tunnel1 ip address ${data.terraform_remote_state.main.outputs.c8000v1_bgp_vxlan10_ip} ${data.terraform_remote_state.main.outputs.vxlan_mask} tunnel source GigabitEthernet3 tunnel mode vxlan-gpe ipv4 tunnel destination ${data.terraform_remote_state.main.outputs.c8000v3_nic1} tunnel vxlan vni 10 ! interface Tunnel2 ip address ${data.terraform_remote_state.main.outputs.c8000v1_bgp_vxlan20_ip} ${data.terraform_remote_state.main.outputs.vxlan_mask} tunnel source GigabitEthernet3 tunnel mode vxlan-gpe ipv4 tunnel destination ${data.terraform_remote_state.main.outputs.c8000v4_nic1} tunnel vxlan vni 20 ! EOT }

jimparker96 avatar Oct 17 '25 07:10 jimparker96