Skip to Content.
Sympa Menu

rare-dev - Re: [rare-dev] netconf

Subject: Rare project developers

List archive

Re: [rare-dev] netconf


Chronological Thread 
  • From: David Schmitz <>
  • To: mc36 <>
  • Cc:
  • Subject: Re: [rare-dev] netconf
  • Date: Mon, 20 Feb 2023 17:06:44 +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,

we are making progress:

part of reponse with new new culprit:

...
ast></ipv4></no><no><ipv4><hsrp><address></address></hsrp></ipv4></no><no><ipv4><vrrp><address></address></vrrp></ipv4></no><no><ipv4><redirection></redirection></ipv4></no><no><ipv4><dhcp-client><enable></enable></dhcp-client></ipv4></no><no><ipv4><pool></pool></ipv4></no><ipv6><address><identifier-value>identifier-escape&#52;321::1
<ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff>...

Exception from ncclient library:
Failed to parse QName 'ffff:ffff:', line 2, column 41046 (<string>, line 2)

":" are now allowed in element proper names,
as they are used to separate the prefix from the proper element.


Some suggestions how to fix it:

Maybe use some "literal" translation, e.g., "<ffff_colon_ffff_colon_ffff_color_ ...> (not nice)

or maybe just something like
"<ffff_ffff_ffff ...>

or re-wrap it in a generic item element and just make text out of it:
<item1>ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ... (I am not sure about it)

Best Regards
David

On Mon, 20 Feb 2023, mc36 wrote:

Date: Mon, 20 Feb 2023 16:53:09 +0100
From: mc36 <>
To: David Schmitz <>
Cc:
Subject: Re: [rare-dev] netconf

hi,

On 2/20/23 14:58, David Schmitz wrote:

Just note the closing </rpc-reply> immediately following the <rpc-reply ...>,
preceding the actual normal content.


so the issue was that now the needescape hunted too hungrily to the special characters... :)
according to https://www.w3.org/TR/xml/#charsets i just relaxed it a bit, - included from rpc-reply... :)
https://github.com/rare-freertr/freeRtr/commit/93497e38c9731ffd8ef1fbf4d025f4ba88fb66d9
it had at least some positive side effect on the ipv6 masks... :)

sid#show running-config interface loopback0 | xml
<config><interface><loopback0>
</loopback0></interface>
<interface><loopback0><description><management>
</management></description>
<vrf><forwarding><v1>
</v1></forwarding></vrf>
<ipv4><address><identifier-value>identifier-escape&#49;0.10.10.227
<identifier-value>identifier-escape&#50;55.255.255.255
</identifier-value></identifier-value></address></ipv4>
<ipv6><address><identifier-value>identifier-escape&#50;001: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>
</loopback0></interface></config>

br,
cs


--

David Schmitz

Boltzmannstrasse 1, 85748 Garching
Telefon: +49 89 35831-8765
Leibniz-Rechenzentrum, Germany
Mail:





Archive powered by MHonArc 2.6.24.

Top of Page