Subject: Rare project developers
List archive
- From: David Schmitz <>
- To: mc36 <>
- Cc:
- Subject: Re: [rare-dev] netconf
- Date: Mon, 20 Feb 2023 14:58:29 +0100 (CET)
- Authentication-results: postout.lrz.de (amavisd-new); dkim=pass (2048-bit key) reason="pass (just generated, assumed good)" header.d=lrz.de
Hi,
On Fri, 17 Feb 2023, mc36 wrote:
Date: Fri, 17 Feb 2023 15:22:52 +0100Ok.
From: mc36 <>
To: David Schmitz <>,
Subject: Re: [rare-dev] netconf
hi,
On 2/17/23 13:06, David Schmitz wrote:
It is the <1> ... </1> tag.
I think, number are not allowed at the beginning of XML tag names.
(<uni2flow6> tags following in the response may have the same issue).
exactly, thanks for root-causing this... :)
so it was a bit trickier to have, but here we goo:
https://github.com/rare-freertr/freeRtr/commit/edd5505901aec3a18e17c7ce3a629292432e3953
long story short, internally i keep the xml element as
/config/router/bgp4/65535/router-id/1.1.1.1
here the value of the last xml element is 1.1.1.1,
and values were escaped properly, but
if something like the process id needed to be escaped,
these appeared in the element's paths and were not.
Unfortunately, now there seems to be a new bug (newest commit 84279848a119b21821f72686fe9eb783620c8171):
The NETCONF RPC response (newest commit ) now look like this
<rpc-reply xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:f81c91c9-a019-456e-90c1-3c716736b12a"
xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"></rpc-reply><identifier-value><data><config><hostname><myr1></myr1></hostname><buggy></buggy><no><locale></locale></no><no><identifier-value>identifier-escapepassword-encrypt</identifier-value></no><no><enable></enable></no><banner><encoded></encoded></banner><client><identifier-value>identifier-escapelabel-range<identifier-value>identifier-escape32<identifier-value>identifier-escape1048560</identifier-value></identifier-value></identifier-value></client><no><logging><milliseconds></milliseconds></logging></no><loggi
...
Just note the closing </rpc-reply> immediately following the <rpc-reply ...>,
preceding the actual normal content.
Consistently, ncclient library complains:
"Extra content at the end of the document, line 2, column 182 (<string>, line
2)"
It is probably somewhere in net/freertr/user/userNetconf.java: doRequest()
But maybe you are quicker than me to figure this out in detail.
Best Regards
David
br,
cs
sid#
sid#show running-config router bgp4 65535 | xml
<config><router><bgp4><identifier-value>identifier-escape65535
</identifier-value></bgp4></router>
<router><bgp4><identifier-value><vrf><v1>
</v1></vrf>
<identifier-value>identifier-escapelocal-as
<identifier-value>identifier-escape65535
</identifier-value></identifier-value>
<identifier-value>identifier-escaperouter-id
<identifier-value>identifier-escape10.10.10.227
</identifier-value></identifier-value>
<identifier-value>identifier-escapeaddress-family
<unicast><multicast><ouni><omlt><flowspec><oflw><vpnuni><vpnmlt><vpnflw><ovpnuni><ovpnmlt><ovpnflw><vpls><mspw><evpn><mdt><nsh><rpd><rtfilter><srte><osrt><linkstate><mvpn><omvpn>
</omvpn></mvpn></linkstate></osrt></srte></rtfilter></rpd></nsh></mdt></evpn></mspw></vpls></ovpnflw></ovpnmlt></ovpnuni></vpnflw></vpnmlt></vpnuni></oflw></flowspec></omlt></ouni></multicast></unicast></identifier-value>
<flapstat>
</flapstat>
<monitor><bmp><p1><identifier-value>identifier-escape10.10.10.227
<identifier-value>identifier-escape17971
</identifier-value></identifier-value></p1></bmp></monitor>
<dump><mrt><identifier-value>identifier-escapebgp4.log
--
David Schmitz
Boltzmannstrasse 1, 85748 Garching
Telefon: +49 89 35831-8765
Leibniz-Rechenzentrum, Germany
Mail:
- Re: [rare-dev] netconf, (continued)
- Re: [rare-dev] netconf, David Schmitz, 02/15/2023
- Re: [rare-dev] netconf, mc36, 02/15/2023
- Re: [rare-dev] netconf, David Schmitz, 02/15/2023
- Re: [rare-dev] netconf, mc36, 02/15/2023
- Re: [rare-dev] netconf, David Schmitz, 02/15/2023
- Re: [rare-dev] netconf, mc36, 02/15/2023
- Re: [rare-dev] netconf, mc36, 02/15/2023
- Re: [rare-dev] netconf, David Schmitz, 02/15/2023
- Re: [rare-dev] netconf, David Schmitz, 02/17/2023
- Re: [rare-dev] netconf, mc36, 02/17/2023
- Re: [rare-dev] netconf, David Schmitz, 02/20/2023
- Re: [rare-dev] netconf, mc36, 02/20/2023
- Re: [rare-dev] netconf, David Schmitz, 02/20/2023
- Re: [rare-dev] netconf, mc36, 02/20/2023
- Re: [rare-dev] netconf, David Schmitz, 02/22/2023
- Re: [rare-dev] netconf, mc36, 02/22/2023
Archive powered by MHonArc 2.6.24.