Comments (2)
Hi,
you are running modified editconfig1.py
, not editconfig.py
. It seems that you have uncommented line that actually is not supposed to be there, it is taken from get.py
example. Instead of this line, you can take bigger part from get example to get the data after edit-config:
# perform <get> and print result
try:
data = session.rpcGet()
except nc.ReplyError as e:
reply = {'success':False, 'error': []}
for err in e.args[0]:
reply['error'].append(json.loads(str(err)))
print(json.dumps(reply))
sys.exit(1)
print(data.print_mem(yang.LYD_XML, yang.LYP_FORMAT | yang.LYP_WITHSIBLINGS))
from libnetconf2.
Thanks it worked. Commented last print statement line in editconfig it worked.
from libnetconf2.
Related Issues (20)
- I am trying to compile libssh-0.10.5 with openssl-3.2.1 getting the folowing errors while compiling please help me on that HOT 8
- compile error HOT 4
- Occasional assert seen when notification thread shutting down HOT 5
- Segfault in nc_accept when password is not defined HOT 3
- Session context with yang-library instance of mount point HOT 27
- Build fails with LTO HOT 1
- Failed to run libnetconf2 example HOT 5
- ERR: Received an invalid message (Node "next-update-at" not found as a child of "edit-config" node.). HOT 6
- Getting "libnetconf ERROR: When condition is accessing its own conditional node children." HOT 20
- `nc_set_print_clb_session` is not really a per-session callback HOT 2
- poll error (Success) HOT 4
- libnetconf2 make issue HOT 1
- Delucidation on nc_recv_notif_dispatch HOT 2
- [Query] Netconf notification not being received by Client Application HOT 2
- Building failure HOT 1
- Authenticate users with central user management HOT 4
- Segfault when sending malformed XML HOT 7
- Not read all modules from server via get-schema HOT 3
- notifications.yang/nc-notifications.yang are required for client RFC5277 support HOT 10
- SSH ping timeout HOT 38
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libnetconf2.