clicon / clixon

YANG-based toolchain including NETCONF and RESTCONF interfaces and an interactive CLI
http://www.clicon.org/
Other
216 stars 71 forks source link

AUTOCLI edit modes + uses/grouping + grouping-treeref=true does not work #494

Open olofhagsand opened 7 months ago

olofhagsand commented 7 months ago

When using the autocli "edit modes" together with the memory optimization grouping-treeref, completion does not work. Example YANG:

    grouping g {
        leaf value{
            type string;
        }
    }
    /* Generic config data */
    container table{
        list parameter{
            key name;
            leaf name{
                type string;
            }
            uses g;
        }
    }

Config:

<clixon-config xmlns="http://clicon.org/config">
  <autocli>
     ...
     <grouping-treeref>true</grouping-treeref> <---

Example run:

olof@totila /> edit table parameter a
olof@totila parameter=a/> set value2 ?
Feb 17 13:35:13: expand_dbvar: 318: Netconf error: Expand datastore symbol: application invalid-value api-path element 'value', expected prefix:name 
CLI command error