Subject: Rare project developers
List archive
- From: mc36 <>
- To: , David Schmitz <>
- Subject: Re: [rare-dev] netconf
- Date: Sat, 4 Feb 2023 09:50:34 +0100
hi,
to ease debugging this,
https://github.com/rare-freertr/freeRtr/commit/4d5c20e2bad3f91c119603ae2783942b84d11830
added a new filter to xml-ize the show outputs... :)
br,
cs
sid#show running-config interface loopback0 | xml
<config><interface><loopback0>
</loopback0></interface>
<description><management>
</management></description>
<vrf><forwarding><v1>
</v1></forwarding></vrf>
<ipv4><address><identifier-value>10.10.10.227
<identifier-value>255.255.255.255
</identifier-value></identifier-value></address></ipv4>
<ipv6><address><identifier-value>2001:db8:1101::227:227
<ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff>
</ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff></identifier-value></address></ipv6>
<template><template1>
</template1></template>
<no><shutdown>
</shutdown></no>
<identifier-value>!
</identifier-value>
</config>
sid#show running-config interface loopback0 | setdel
set interface loopback0
set interface loopback0 description management
set interface loopback0 vrf forwarding v1
set interface loopback0 ipv4 address 10.10.10.227 255.255.255.255
set interface loopback0 ipv6 address 2001:db8:1101::227:227
ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
set interface loopback0 template template1
delete interface loopback0 shutdown
set interface loopback0 exit
set !
sid#show running-config interface loopback0
interface loopback0
description management
vrf forwarding v1
ipv4 address 10.10.10.227 255.255.255.255
ipv6 address 2001:db8:1101::227:227 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
template template1
no shutdown
exit
!
sid#
On 2/4/23 08:49, mc36 wrote:
hi,
with
https://github.com/rare-freertr/freeRtr/commit/aa0bb8a11a6bc4d5bd3f2c228ae36e5f926214f2
now yangcli accepts the config, at least partially... see attached the
document i sent it...
br,
cs
yangcli > get-config source=running
Warning: 'data' has no child node 'config'. Using anyxml
Warning: 'data' has no child node 'rpc-reply'. Using anyxml
Warning: 'rpc-reply' has no child node 'rpc-reply'. Using anyxml
mgr_rpc: got invalid reply on session 1 (wrong node depth)
RPC Data Reply 1 for session 399134541:
rpc-reply {
data {
config {
hostname {
netconf
}
buggy
no {
password-encrypt
}
no {
enable
}
banner {
encoded
}
identifier-value !
client {
label-range {
identifier-value 32
}
}
}
rpc-reply
}
rpc-reply
}
yangcli >
On 2/3/23 16:56, mc36 wrote:
hi,
with this
https://github.com/rare-freertr/freeRtr/commit/b604046291beb58d3f04079364f859edd2f57fec
i get now a different error message... maybe it's just my config, could you
please give it a try?
yangcli > get-config source=running
mgr_top: get node failed (xml reader EOF); session dropped
yangcli>
the latest jar is at src.freertr.org/src/rtr.jar
thx,
cs
On 2/3/23 16:21, David Schmitz wrote:
Hi,
On Fri, 3 Feb 2023, mc36 wrote:
Date: Fri, 3 Feb 2023 16:18:45 +0100"get-config source=running" would be enough.
From: mc36 <>
Reply-To:
To: David Schmitz <>
Cc: "" <>
Subject: [rare-dev] netconf
hi,
i tried to bring up your environment but i found too many missing parts from
freerouter netconf...
right now, only these are implemented:
https://github.com/rare-freertr/freeRtr/blob/master/src/net/freertr/user/userNetconf.java#L29
this is all what i needed to bring up
https://github.com/CiscoDevNet/yang-explorer in a vm and query/configure...
but when you issue sget-config / source=running in yangcli see that it tries
to access the /?xml/rpc/get-config/source/running
which is not there yet... so the question is, how you spawn your yangcli and
what command do you try to execute there?
"sget-config source=running" is not needed.
Best Regards
David
thx,
cs
- [rare-dev] netconf, mc36, 02/03/2023
- Re: [rare-dev] netconf, David Schmitz, 02/03/2023
- Re: [rare-dev] netconf, mc36, 02/03/2023
- Re: [rare-dev] netconf, mc36, 02/04/2023
- Re: [rare-dev] netconf, mc36, 02/04/2023
- Re: [rare-dev] netconf, mc36, 02/04/2023
- Re: [rare-dev] netconf, David Schmitz, 02/06/2023
- Re: [rare-dev] netconf, Frédéric LOUI, 02/06/2023
- Re: [rare-dev] netconf, David Schmitz, 02/07/2023
- Re: [rare-dev] netconf, mc36, 02/07/2023
- Re: [rare-dev] netconf, David Schmitz, 02/06/2023
- Re: [rare-dev] netconf, David Schmitz, 02/09/2023
- Re: [rare-dev] netconf, mc36, 02/10/2023
- Re: [rare-dev] netconf, David Schmitz, 02/10/2023
- Re: [rare-dev] netconf, mc36, 02/11/2023
- Re: [rare-dev] netconf, David Schmitz, 02/13/2023
- Re: [rare-dev] netconf, mc36, 02/04/2023
- Re: [rare-dev] netconf, mc36, 02/04/2023
- Re: [rare-dev] netconf, mc36, 02/04/2023
- Re: [rare-dev] netconf, mc36, 02/03/2023
- Re: [rare-dev] netconf, David Schmitz, 02/03/2023
Archive powered by MHonArc 2.6.19.