Hi,
I wrote a devation for ietf-interface like below
deviation “/if:interfaces/if:interface” {
deviate add {
must “if:type != ‘ianaift:ipForward’ or ifxipos:l3-interface” {
error-message “Cannot create RFC 7223 interface for L3”
+ “without creating child l3-interface”;
description “Cannot create RFC 7223 interface for L3”
+ “without creating child l3-interface”;
}
}
}
L3-interface model piece like below:
augment “/if:interfaces/if:interface” {
description
“ericsson-interface”;
/*
l3-interface
*/
container l3-interface {
when "…/if:type = ‘ianaift:ipForward’ or …/if:type = "
+ “‘ianaift:softwareLoopback’” {
description
“”;
}
presence “”;
description
“Configure a logical interface”;
uses if-grp;
}
}
Both models pass confdc compile, but when confd load this model, below error happens.
If I remove “or ifxipos:l3-interface” in deviation file, confd can start as normal.
root@sim_1d01-ssr1[RPSW1]:/opt/confd/bin> ./confd --foreground -v
22-Oct-2016::01:47:52.676 sim_1d01-ssr1 confd[18786]: - Daemon logging started
22-Oct-2016::01:47:52.686 sim_1d01-ssr1 confd[18786]: confd embedded apps in early_phase0: []
22-Oct-2016::01:47:52.689 sim_1d01-ssr1 confd[18786]: - Internal error: Startup failed; probably due to incorrect installation
“Internal error: Startup failed; probably due to incorrect installation\n”