Hi,
I define a container as below, I have placed the leaflist-element.fxs
to the confd/etc/confd/
, but when start up the confd/bin/confd
, it couldn’t be started and always report the error.
# /root/confd/bin/confd
CDB boot error: Init transaction failed to validate: too few /leaflist-element:aa/ipv4-remote-end-points-rec, 0 configured, at least 1 must be configured
In my opinion, when edit-config
one XML file for the container and don’t contain the leaf-list ipv4-remote-end-points-rec
, the error could be reported, the step is just startup the server, why the error is reported?
#cat leaflist-element.yang
module leaflist-element {
namespace "http://test/leaflist/element";
prefix leaflist-element;
container aa {
leaf ip-type {
type string;
}
leaf-list ipv4-remote-end-points-rec {
// when "../ip-type = 'ipv4'";
min-elements 1;
max-elements 10;
type string;
}
leaf-list ipv6-remote-end-points-rec {
// when "../ip-type = 'ipv6'";
min-elements 1;
max-elements 10;
type string;
}
}
}