Questions tagged [netconf]

53 questions
2
votes
0 answers

Juniper + golang: I need to save interface configuration and I apply it again

I'm using github.com/Juniper/go-netconf/netconf library. Here is my RPC to get interface config: rpcGetInterfaceConfig =…
2
votes
0 answers

How to use libnetconf2's nc_recv_reply to get reply's data

I'm trying to get a config using nc_recv_reply. So basically what I'm doing is: struct nc_reply_data* reply = NULL; std::cout << "======Calling nc_recv_reply======" << std::endl; type = nc_recv_reply(session, rpc, msgid, 300, 0, (struct…
Prawky 77
  • 21
  • 2
1
vote
0 answers

RFC 6241 interpretation related to file:// URI

The Netconf RFC 6241 provides an example like shown below. file://checkpoint.conf
Ram
  • 301
  • 2
  • 12
1
vote
1 answer

Debugging an Erlang code with Makefile in IntelliJ

Setup: OTP 26. IntelliJ 2022.3.1 with plugins Erlang 0.11.1162 and Makefile 223.8214.6 Code under preview: The test suite ct_netconfc_SUITE. We could run it from CLI using the command make common_test_test ARGS="-suite ct_netconfc_SUITE". Goal: I…
Bhuvan
  • 370
  • 9
1
vote
1 answer

Unable to run ct_netconfc_SUITE testcase

When I try to run a testcase specified in the test suite ct_netconfc_SUITE, I am getting an error “Failed to start CTH, see the CT Log for details”. What could be the issue? Please give me pointer to resolve the issue. I did not find any clue in the…
Bhuvan
  • 370
  • 9
1
vote
2 answers

How do I mock netconf session in unit tests Golang

I am using juniper's netconf package ("github.com/Juniper/go-netconf/netconf") to establish a netconf session in my code. I wanted to know how can I mock a netconf session in my unit tests. My methods are: func TestMyFunction(t *testing.T) { …
1
vote
1 answer

SSH session automatically logged out

Setup: Windows host 192.168.56.1 Ubuntu VM 192.168.56.101 Windows host runs OpenSSH. Ububtu VM runs a confd based Netconf server at port 2022. Operation Performed: ssh admin@192.168.56.101 -p 2022 Result as seen in the Windows CLI: ssh…
Bhuvan
  • 370
  • 9
1
vote
1 answer

routing table through netconf

I would like to get a routing table from a csr device. Basically, the same information that is provided with the show ip route command. I would expect a non-empty rpc message from the csr with non-empty routing table, which is not the case. The…
user3603644
  • 95
  • 1
  • 7
1
vote
2 answers

Attributes sequencing in Netconf operation

My device wants attribute X to be set before attribute Y. How do we implement it in an NMS/EMS? My understanding is that irrespective of the protocol being used such as Netconf, SNMP, etc, my NMS has to send 2 SET/EDIT PDUs. But, ConfD Kick Start…
Mohan
  • 129
  • 8
1
vote
1 answer

Yang: Force user to input from the list to which the node is referring to

I am new to yang. Below is my yang config. container ntp { tailf:info "NTP Configuration"; tailf:cli-oper-info "Display NTP information"; tailf:cli-incomplete-show-path; //ntp server config leaf-list server { tailf:info "NTP servers"; …
vivek
  • 467
  • 2
  • 6
  • 18
1
vote
2 answers

Juniper NETCONF RPC - No data returned

I am trying to send a custom XML RPC to my Juniper VM. The command is the following: netconf-console --host 192.168.1.100 --port 830 --user xxxx --password xxxx --rpc junos-get-interfaces.xml
Jok56
  • 69
  • 1
  • 9
1
vote
4 answers

Modifying a config in Opendaylight

I am needing to modify my Openflow configurations in my Opendaylight (0.11.x sodium) system. I follow the documentation which has helped guide is in creating new configs deleting configs replacing configs but I am not seeing an example or…
E.S.
  • 2,733
  • 6
  • 36
  • 71
1
vote
0 answers

Why there are differences between the yang model capabilities receive in the Netconf hello message and Opendaylight?

I've been trying to manage a device using the Restconf northbound interface of Opendaylight Oxigen and the Netconf southbound connected to a device that is running Netopeer with several yang data models. Basically, i'm following this…
1
vote
0 answers

Can any one explain how to mount a netconf device in opendaylight from a maven project java application

Can any one explain how to mount a netconf device in opendaylight from a maven project java application Any one please help in creating a starter project template for mounting netconf device in opendaylight from maven project The doc is not clear on…
1
vote
0 answers

NETCONF vs RESTCONF Vs gRPC

For network automation, I see that NETCONF, RESTCONF and gRPC are available. Can someone tell me which one should be chosen for a typical router and respective use cases. Can you please share the known issues or challenges with respective approach…
Brema
  • 43
  • 1
  • 1
  • 6
1
2 3 4