Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto Completion does not display options on pressing TAB for inner hierarchical nodes . #208

Closed
DeekshaBhandary opened this issue Apr 22, 2021 · 2 comments
Labels

Comments

@DeekshaBhandary
Copy link

The yang def is as follows:

grouping group1 {
   list interface 
        {
            key "name";
            description "The list of named interfaces on the device";
           leaf name 
            {
                type string;
                 description  "Configure interface name.";
            } 
           uses group2;
		 }
    }
	
grouping group2{
    list unit
        {
            key "unit-id";
            description "Configure sub-interface under the physical interface.";
           
            leaf unit-id {
                type uint16;
                description "Configure unit which identifies sub-interface under physical interface.";
            }
	    }
	}

the autocompletion does not display the available options on pressing TAB for the leaf node of the inner group(group2). But the options are seen on pressing ?. This issue is seen for all data types. The auto completion works fine and displays available options for the outermost node.(like list interface)

supervisor@apr12: cfg> set interface **PRESS <TAB>**
 ifp-0/0/1              ifp-0/0/2              ifp-0/0/3              ifp-0/0/47             ifp-0/0/48             ifp-0/0/49            
 ifp-0/0/50             ifp-0/0/52             ifp-0/0/54             lo-0/0/0               lo-0/0/3               <name>                
supervisor@apr12: cfg> set interface ifp-0/0/ **PRESS <TAB>**
 ifp-0/0/1              ifp-0/0/2              ifp-0/0/3              ifp-0/0/47             ifp-0/0/48             ifp-0/0/49            
 ifp-0/0/50             ifp-0/0/52             ifp-0/0/54            
supervisor@apr12: cfg> set interface ifp-0/0/1 unit 4 **PRESS <TAB>**
 <unit-id>         <---- here 41, 42 and 4070 is not being displayed    
supervisor@apr12: cfg> set interface ifp-0/0/1 unit 4 **PRESS ?**
  41                    Configure unit which identifies sub-interface under physical interface.                                               
  42                    Configure unit which identifies sub-interface under physical interface.                                               
  4070                  Configure unit which identifies sub-interface under physical interface.                                               
  <unit-id>             Configure unit which identifies sub-interface under physical interface.                                               
supervisor@apr12: cfg> set interface ifp-0/0/1 unit 4

Is this the intended behavior and let me know if you see this issue too

olofhagsand added a commit to clicon/cligen that referenced this issue Apr 22, 2021
…r inner hierarchical nodes . #208](clicon/clixon#208)

* segv in parse-tree print detailed mode function
@olofhagsand
Copy link
Member

This was actually pretty major, thanks for detecting it.
Please verify.

@DeekshaBhandary
Copy link
Author

Yes the issue is fixed. Thank You

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants