Comments (3)
This should be supported, did you try the following by chance?
asn.N.networks.network['nw1'].node['node1.1'].supporting_node.add(network_ref='nw2', node_ref='node2.1')
from pyangbind.
Hi Xavier,
Thanks for your reply. Indeed, I've found the right way to do that a few day later I posted my message, but I forgot to mention it on this thread.
I confirm, it is perfectly supported.
In fact, the appropriate approach is simply to use the key exactly as it is in YANG. For example, in the ietf-network-topology case, supporting-termination-point ['1 1.1 1.1.1'] works in the case where network-ref = '1', node-ref = '1.1', and tp-ref = '1.1.1']. Initially, I had not thought about that approach, just because it not pythonic !
Regards.
from pyangbind.
Awesome, great to hear you found the solution.
from pyangbind.
Related Issues (20)
- Empty RPC XML Serialisation will not work HOT 3
- Nested lists
- bindings generation for "ietf-netconf.yang" with --build-rpcs option causes an exeption HOT 3
- Add async as a reserved Python name. HOT 1
- Pyangbind PYPI release does not have pybindIETFXMLEncoder class HOT 1
- How to inspect yang model HOT 2
- pyangbind is not taking care of "when" statement in yang definitions. HOT 2
- Is pyangbind still maintained? HOT 3
- RuntimeError when importing an older revision of a YANG file HOT 1
- Failure on OpenConfig BFD Model HOT 3
- Fix binary type representation HOT 2
- Integration and Sample UnitTests using BGP are broken
- __add_metadata is not adding the @metadata object to JSON or XML HOT 2
- 0.8.3 - TypeError: cannot pickle 'lxml.etree.XMLSchema' object HOT 8
- Support `bits` type HOT 1
- pyangbind fails processing typedef union with default value
- pyangbind-0.8.4 installation failed HOT 2
- Can not be directly used in ncclient? HOT 2
- TypeError: unhandled keyword with children case HOT 3
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 pyangbind.