Skip to Content.

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

Subject: Rare project developers

List archive


Re: [rare-dev] netconf


Chronological Thread 
  • From: mc36 <>
  • To: David Schmitz <>
  • Cc:
  • Subject: Re: [rare-dev] netconf
  • Date: Mon, 13 Feb 2023 14:19:38 +0100

hi,

On 2/13/23 10:37, mc36 wrote:
A bit ugly to parse for humans in case any character is escaped,
but at least it could work.


well, agreeing that it's ugly, and in freerouter i would allow
forever-temporary solutions so lemme do a proper escaping then...

fix: ---> in freerouter i would _not_ allow forever-temporary<---

change:
https://github.com/rare-freertr/freeRtr/commit/1a837f47fc39b2bcad832c6c24530420a4baf049

so here we goo, with the below small change i arrived to this:

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&#46;10&#46;10&#46;227
<identifier-value>identifier-escape&#50;55&#46;255&#46;255&#46;255

</identifier-value></identifier-value></address></ipv4>
<ipv6><address><identifier-value>identifier-escape&#50;001&#58;db8&#58;1101&#58;&#58;227&#58;227
<identifier-value>identifier-escapeffff&#58;ffff&#58;ffff&#58;ffff&#58;ffff&#58;ffff&#58;ffff&#58;ffff

</identifier-value></identifier-value></address></ipv6>
<template><template1>
</template1></template>
<no><shutdown>
</shutdown></no>
</loopback0></interface></config>

sid#


maybe you were right and a brute-force would had been easier to have but heyy
a least i tried to be user-readable :)

can you please give a try to the latest jar if yangcli deserializes now
everything properly?

thx,
cs



Archive powered by MHonArc 2.6.19.

Top of Page