-
Notifications
You must be signed in to change notification settings - Fork 49
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Description
The iosxe_system resource generates an incorrect NETCONF path when configuring IP hosts with VRF, causing an unknown-element error.
Error
RPC error: rpc-error {
error-type: application
error-tag: unknown-element
error-path: /ios:native/ios:ip/ios:host/ios:vrf[ios:vrf-name='Mgmt-intf']/ios:ip-list
}
Root Cause
The provider sends:
/ios:native/ios:ip/ios:host/ios:vrf[ios:vrf-name='X']/ios:ip-list
Per Cisco-IOS-XE-ip.yang (lines 294-314), the correct path requires a nested host-name list:
/ios:native/ios:ip/ios:host/ios:vrf[ios:vrf-name='X']/ios:host-name[ios:host-name='Y']/ios:ip-list
YANG Model Structure
container vrf {
list vrf {
key "vrf-name";
leaf vrf-name { type string; }
list host-name { // ← Missing in generated NETCONF
key "host-name";
leaf host-name { type string; }
leaf-list ip-list { type inet:ip-address; }
}
}
}File Location
gen/definitions/system.yaml - ip_hosts_vrf attribute definition
Impact
- IP hosts without VRF work correctly
- IP hosts with VRF fail during apply
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working