Skip to Content.
Sympa Menu

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

Subject: Rare project developers

List archive

Re: [rare-dev] netconf


Chronological Thread 
  • From: mc36 <>
  • To: David Schmitz <>,
  • Subject: Re: [rare-dev] netconf
  • Date: Fri, 17 Feb 2023 15:22:52 +0100

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.
br,
cs

sid#
sid#show running-config router bgp4 65535 | xml
<config><router><bgp4><identifier-value>identifier-escape&#54;5535

</identifier-value></bgp4></router>
<router><bgp4><identifier-value><vrf><v1>
</v1></vrf>
<identifier-value>identifier-escapelocal&#45;as
<identifier-value>identifier-escape&#54;5535

</identifier-value></identifier-value>
<identifier-value>identifier-escaperouter&#45;id
<identifier-value>identifier-escape&#49;0&#46;10&#46;10&#46;227

</identifier-value></identifier-value>
<identifier-value>identifier-escapeaddress&#45;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-escape&#49;0&#46;10&#46;10&#46;227
<identifier-value>identifier-escape&#49;7971

</identifier-value></identifier-value></p1></bmp></monitor>
<dump><mrt><identifier-value>identifier-escapebgp4&#46;log






Archive powered by MHonArc 2.6.24.

Top of Page