Skip to content
New issue

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

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

Already on GitHub? # to your account

Execute arbitrary RPC commands #45

Closed
krihal opened this issue Oct 10, 2023 · 3 comments
Closed

Execute arbitrary RPC commands #45

krihal opened this issue Oct 10, 2023 · 3 comments
Assignees
Labels
feature New feature or request fixed: plz verify Bug/feature is fixed by developer, need verification prio

Comments

@krihal
Copy link
Collaborator

krihal commented Oct 10, 2023

It should be possible to execute random RPC commands towards a device.

Example:

controller> rpc exec juniper my_devices_* show interfaces
@krihal krihal added the feature New feature or request label Oct 10, 2023
olofhagsand added a commit that referenced this issue Nov 14, 2024
See [Execute arbitrary RPC commands](#45
@olofhagsand
Copy link
Member

olofhagsand commented Nov 14, 2024

First version:

olof@alarik> connection open
olof@alarik> rpc openconfig1 ?
  clixon-lib:debug                    Set debug flags of backend.                                   
  clixon-lib:ping                     Check aliveness of backend daemon.                            
  clixon-lib:process-control          Control a specific process or daemon: start/stop, etc.        
  clixon-lib:restart-plugin           Restart specific backend plugins.                             
  ...
olof@alarik> rpc openconfig1 clixon-lib:debug yang 
rpc debug {
   description "Set debug flags of backend.
             Note only numerical values";
   input {
      leaf level {
         type uint32;
      }
   }
}
olof@alarik> rpc openconfig1 clixon-lib:debug '<level>1</level>'
olof@alarik> 

olofhagsand added a commit that referenced this issue Nov 27, 2024
[Execute arbitrary RPC commands](#45)
@olofhagsand olofhagsand added the fixed: plz verify Bug/feature is fixed by developer, need verification label Nov 27, 2024
@olofhagsand
Copy link
Member

@krihal
Copy link
Collaborator Author

krihal commented Nov 28, 2024

Verified!

@krihal krihal closed this as completed Nov 28, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
feature New feature or request fixed: plz verify Bug/feature is fixed by developer, need verification prio
Projects
None yet
Development

No branches or pull requests

2 participants