Hi,
I have the following yang model:
module interface-example {
namespace "
http://example.net/interface-example";
prefix "ifeg";
description
"Data model for the interface example.";
revision 2014-12-09 {
description
"Initial revision.";
}
/* Typedefs */
typedef state {
type enumeration {
enum locked;
enum unlocked;
}
default "unlocked";
}
/* State data and Configuration */
container ne {
description
"State data and configuration of a CYAN nseries.";
list equip {
key "slot";
leaf slot {
type uint16 {
range "1..4";
}
}
leaf adminState {
type state;
}
}
}
}
When I issue the following edit-config request from the netconf-cli everything seems OK. I printed out the updates in the transAPI callback and I got the request.
<ne xmlns="
http://example.net/interface-example">
<equip>
<slot>1</slot>
</equip>
</ne>
The question I have is, because adminState was not specified in the netconf request and as the YANG model specifies a default, should we not get that update as well internally from the netopeer server.
If we don't get that request then what is the point of having the default statement in the model ?
Thanks,
Salman