Subject: Rare project developers
List archive
- From: David Schmitz <>
- To: mc36 <>
- Cc:
- Subject: Re: [rare-dev] netconf
- Date: Wed, 1 Mar 2023 16:17:49 +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 Wed, 22 Feb 2023, mc36 wrote:
Date: Wed, 22 Feb 2023 09:05:25 +0100
From: mc36 <>
To: , David Schmitz <>
Subject: Re: [rare-dev] netconf
hi,
On 2/22/23 08:32, David Schmitz wrote:
The "-" can also not be the first character of a XML element name.
here we goo:
https://github.com/rare-freertr/freeRtr/commit/16b65de6b33b29d732d2615cd0ddeec8cc247955
Now, just after having accomplished a working test-wise BGP FlowSpec exchange between an extended version of test bed https://github.com/rare-freertr/validated-design/tree/main/000-man/004a-run-bgp-rr
and my own freertr router having a network connection to my test FoD,
I continued to look at the XML NETCONF data.
It still seems to have a strange bug:
...
</script>
<access-list>
<rule1 />
</access-list>
<access-list>
<rule1>
<sequence>
<identifier-value>identifier-escape10
<permit>
<identifier-value>identifier-escape58
<any>
<all>
<any>
<all />
</any>
</all>
</any></identifier-value>
</permit></identifier-value>
</sequence>
</rule1>
<rule10 />
</access-list>
<access-list>
<rule10>
<sequence>
...
This snippet is from own freertr router, with the the following access list
config:
sh ru rule
access-list rule1
sequence 10 permit 58 any all any all
exit
access-list rule10
sequence 10 permit 58 any all any all
exit
access-list rule20
sequence 10 deny 6 12.12.12.12 255.255.255.255 3 13.13.13.13 255.255.255.255
13
exit
access-list rule21
sequence 10 deny 6 any 789 any 0
exit
access-list rule3
sequence 10 permit 58 any all any all
exit
access-list rule5
sequence 10 permit 6 10.1.11.1 255.255.255.255 7-19 10.1.1.1 255.255.255.255
33-78
exit
access-list rule9
sequence 10 permit 1 any all any all
exit
So, as you can see, there is defined in the config a single access list named
"rule1",
but in the XML above
the XML element
<access-list>
<rule1 />
</access-list>
precedes
the actual <access-list>
<rule1 ...
XML element.
This seems to happen for all the access lists.
And, it happens as well for policy-maps:
...
</asdf>
<policy-map-p4 />
</policy-map>
<policy-map>
<policy-map-p4>
<sequence>
<identifier-value>identifier-escape1
<description /></identifier-value>
</sequence>
<sequence>
<identifier-value>identifier-escape1
<action>
<drop />
...
Best Regards
David
br,
cs
--
David Schmitz
Boltzmannstrasse 1, 85748 Garching
Telefon: +49 89 35831-8765
Leibniz-Rechenzentrum, Germany
Mail:
- Re: [rare-dev] netconf, David Schmitz, 03/01/2023
- Re: [rare-dev] netconf, mc36, 03/02/2023
- Re: [rare-dev] netconf, David Schmitz, 03/03/2023
- Re: [rare-dev] netconf, mc36, 03/02/2023
Archive powered by MHonArc 2.6.24.