Hi,

there are several opened bugs about this problem. You will find more info about 
the issue in the following bugs 
https://bugs.opendaylight.org/show_bug.cgi?id=2489 and 
https://bugs.opendaylight.org/show_bug.cgi?id=6488

BR
[http://wwwin.cisco.com/c/dam/cec/organizations/gmcc/services-tools/signaturetool/images/logo/logo_Cisco_Blue.png]



Peter Kajsa
Engineer - Software
pka...@cisco.com<mailto:pka...@cisco.com>
Tel:

Cisco Systems, Inc.



Slovakia
cisco.com


[http://www.cisco.com/assets/swa/img/thinkbeforeyouprint.gif]Think before you 
print.

This email may contain confidential and privileged material for the sole use of 
the intended recipient. Any review, use, distribution or disclosure by others 
is strictly prohibited. If you are not the intended recipient (or authorized to 
receive for the recipient), please contact the sender by reply email and delete 
all copies of this message.
Please click 
here<http://www.cisco.com/web/about/doing_business/legal/cri/index.html> for 
Company Registration Information.


From: yangtools-dev-boun...@lists.opendaylight.org 
[mailto:yangtools-dev-boun...@lists.opendaylight.org] On Behalf Of Satish Dutt
Sent: Thursday, April 6, 2017 3:08 PM
To: controller-dev@lists.opendaylight.org; 
yangtools-...@lists.opendaylight.org; yang-push-...@lists.opendaylight.org
Subject: [yangtools-dev] Yang default values not being honored

Hi ,

In the below model some of the attributes have the default values. But When I 
am pushing the JSON without the default valued attributes to the config data 
store, those attributes are not getting populated with the default values and 
hence not stored in the CDS. So are the yang default values not honored ? I 
tried this by creating a sample project with the carbon project archetype.

container connector-configs {
    presence true;
    list connector-config {
        key uid;
        uses connector-config-info;

        leaf mgmt-ip {
            type inet-types:ipv4-address;
            config true;
            description "IP address of the connector";
        }

        leaf netmask {
            type inet-types:ipv4-address;
            config true;
            description "netmask of the connector";
        }

        leaf tunnel-id {
            type uint32 {
                range "0..10000000";
            }
            config true;
            default 10;
            description "Tunnel ID to management tunnel to be created";
        }
    }
}


Regards
-Satish
_______________________________________________
controller-dev mailing list
controller-dev@lists.opendaylight.org
https://lists.opendaylight.org/mailman/listinfo/controller-dev

Reply via email to