Add dynamic library support for CLIgen extensions#136
Add dynamic library support for CLIgen extensions#136khromenokroman wants to merge 3 commits intoclicon:masterfrom
Conversation
Introduced mechanisms to dynamically load and inject custom match result handling via shared libraries using `dlopen` and `dlsym`. Updated relevant structures and functions to support this functionality.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #136 +/- ##
==========================================
- Coverage 53.25% 53.24% -0.02%
==========================================
Files 23 23
Lines 7776 7806 +30
Branches 1797 1804 +7
==========================================
+ Hits 4141 4156 +15
- Misses 2607 2619 +12
- Partials 1028 1031 +3
Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
|
Why would you want that, what is the usecase? |
|
@olofhagsand sysadmin@eve-img:/> set system interface management mgmt0 mac-address an important note is that where this is inserted is declared in yang in the cli, it's done like this |
@olofhagsand and what I need is inside the generated cli inside the set. |
|
One could extend he syntax to make the expand function configurable,
|
this will only work when the client is running, and if something has changed in runtime, I will not be able to update it. |
is this, as I understand it, not implemented? or is it already there? if there is a place to read about it? |
|
No it is not implemented. |
|
@olofhagsand Maybe we can add this solution for now, and fix it as soon as another one appears? I really need this functionality now. And to do this, |
|
You can add this on your local repo if you like. I will not add an intermediate solution in upstream. As a first step, instead of it being fixed in C, it could be added to include/clixon_custom.h or in configure.ac. |
@olofhagsand
Introduced mechanisms to dynamically load and inject custom match result handling via shared libraries using
dlopenanddlsym. Updated relevant structures and functions to support this functionality.