ietf-netconf

What's the difference between the include and import statement in NETCONF (.Yin/Yang files)

十年热恋 提交于 2020-07-07 05:43:34
问题 I understand that you can create a separate yang file (Something like a textual Convention to store syntax values for MIBS)and import it into another yang file to make the data more organised and structured, but I can't seem to understand what the include statement does differently? Does it "import" the entire file into the file that's including it - and if so would this be read before the file including it...? Please help :) 回答1: YANG relies heavily on a concept known as "namespaces", which

YANG: how to model nested lists configuration data without key

放肆的年华 提交于 2020-01-25 01:25:11
问题 I am trying to build YANG model for this configuration file that has lists without keys. However, Due to the necessity of key in YANG list, I wasn't able to build exact YANG model. Is there any idea how to represents list of list without key in YANG. The file includes acls in which there could be many acl like acl1, acl2 named by users and has rules as in the example below. acls: acl1: - rule: nw_src: 192.168.1.1/24 actions: allow: 1 - rule: actions: allow: 0 acl2: - rule: nw_src: 192.168.1.1

Netconf Notifications

断了今生、忘了曾经 提交于 2020-01-05 04:20:18
问题 RFC 5277 defines notification replay support. Just wondering what customer problems this notification replay can solve? What could be the need to scan through list of past notifications? At any point of time, controllers can always fire "get" RPC and determine current state. Any inputs on this are appreciated. 回答1: Notification replay is mostly required to sync NETCONF clients with servers without the need to do a full RPC. In some systems, the configuration + operational data becomes quite

How to exclude module name in leaf value of Identityref during ODL validation?

痴心易碎 提交于 2019-12-13 03:22:54
问题 I have YANG model and JSON object which will be verified by ODL (see bellow). I need to exclude module name from JSON to verify. When I exclude module name from identityref ("type": "center-car-sale-type:sedan") and send only identityref name ("type": "sedan") ODL throw exception that this identityref is not found. I want to send object without module name because "module name" + "identityref name" leads to mix metadata and instance. How can I set up ODL validation to avoid module name in

ct_netconfc:open/1 raises an “exception error: bad argument”

送分小仙女□ 提交于 2019-12-13 03:12:49
问题 I wrote this Erlang module: -module(ncclient). -export([open/0]). open() -> Host = {ssh, {192,168,30,11}}, Port = {port, 830}, User = {user, "admin"}, Pass = {password, "admin"}, ct_netconfc:open([Host, Port, User, Pass]). Compiled, then ran it: # erl Erlang/OTP 20 [erts-9.1] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:10] [kernel-poll:false] Eshell V9.1 (abort with ^G) 1> c(ncclient). {ok,ncclient} 2> ncclient:open(). ** exception error: bad argument in function ets:select/2

Perl - How to make a library specific to individual threads

▼魔方 西西 提交于 2019-12-10 11:14:09
问题 I am writing a multi threaded script in perl. In which I am using a library Net::Netconf::Manager which inturn uses Net::SSH2 . This Net::SSH2(libssh2) doesn't seem to be thread safe when 'shared handles' simulataneously. I quote as in libssh2 website Thread-safe: just don't share handles simultaneously I am not sure what this "sharing handles" mean. Also I would like to know how to 'not share handles'. When I run my script, occasionally i see error trace with backtrace and memory map