CESNET / libnetconf

C NETCONF library
Other
113 stars 84 forks source link

Unable to create multiple leaves of a leaf-list when it is Augmenting a list. #243

Open BanuPrakashReddy opened 7 years ago

BanuPrakashReddy commented 7 years ago

I know that augmenting a leaf-list to a list is pretty normal and it should work. But, when I am augmenting a leaf-list to a list in ietf-system.yang file. I am facing the problem as mentioned below:

Even after configuring multiple leaves(one by one) of an augmented leaf-list, only the last leaf exist in the configuration.

Below is the yang file , which I used :

_**module abc-system-authentication {

namespace "http://www.abc.com/ns/yang/" + "abc-system-authentication"; prefix a-sys-auth;

import ietf-system { prefix sys; }

contact "http://www.abc.com/";

description "This module contains a collection of YANG definitions to support extension of authentication functionality on the device.";

revision 2016-11-22 { description "Initial revision."; reference "None."; }

augment "/sys:system/sys:authentication/sys:user" { description "Augment the local user with an optional user group assignment.";

    leaf-list system-defined-group {
      type string;
      description
        "The name of the system defined group(s) to which the user
         is assigned. A system defined group is one that exists
         on the system but is not explicity created.";
    }

}

}**_

Below it the configuration I pushed first :

_**

test xyz **_ Then pushed the below configuration : _** test xyz2 **_ When I do get-configuration, I always see output as : _** test xyz2 **_