[irrtoolset]RtConfig template error in import/export Group
Katie Petrusha katie at ripe.net
Mon May 17 14:54:07 CEST 2004
On Sun, May 16, 2004 at 12:03:08PM +0200, Peter Hudec wrote:
Dear Peter,
Thanks for reporting this.
Sorry, there's a bug in RtConfig command line parser (it refuses hierarchical names,
here's a patch for it:
diff -r4.9 src/RtConfig/command.l
219c219
< <USEFUL_LINE>[A-Za-z_0-9-]+ {
---
> <USEFUL_LINE>[:A-Za-z_0-9-]+ {
However I'm not sure what you mean by
'neighbor AS8679:PRNG-SIX peer-group
- I don't think that this is also valid'
Do you mean that your peer group name should be kept to "PRNG-SIX" in the config?
However, the full RPSL name is AS8679:PRNG-SIX, do you mean you'd like a part of the name to be cut out in the config? Won't it create confusion when having names like:
AS1:PRNG-SIX
AS2:PRNG-SIX
...
Also, what about other peering-set names inside this peering-set?
Please also let me know if there are any problems with the patch.
P.S. Later I'll have a look why it segfaults in 4.8.1.
--
Katie Petrusha
RIPE NCC
> hi
>
> at first - I'm newbie with IRRToolsSet, so be patient with me :)
>
> I have problem with RtConfig and generating cisco configs witch importGroup
> and exportGroup (Error in template file).
>
> My setup is folloving
> - object perring-set: AS8679:PRNG-SIX
> - @RtConfig exportGroup AS8679 AS8679:PRNG-SIX
>
> It "crashes" on the ":" in the AS8679:PRNG-SIX
> (as I found in the source code and debuging)
>
> As the RtConfig generates cisco config it should write something like
> neighbor AS8679:PRNG-SIX peer-group
> - I don't think that this is also valid
>
> Has anyone solution (patch) to do
> - keep perring-set-name as it is
> - make RtConfig parse the line (with no template error)
> - generate valid cisco config
>
> I'm using IRRToolSet-4.7.3 (latest non-ng version).The latest ng version
> (IRRToolSet-4.8.1) has seqfault me (stable debian)
>
> My solution is to write patch (if doesn't exists)
> - add one more (optional) parameter to the importGroup/exportGroup line
> - @RtConfig exportGroup <ASn> <peering-set-name> [config-peer-name]
> - this will generate config line
> - neighbor <config-peer-name> peer-group
>
>
> best regards
>
> Peter Hudec
>
> --
> Hlupi robia chyby z pracovitosti. Mudri, aby si oddychli.
>
> position: [IP network manager]
> company: [PosTel Ltd.]
> address: [Borska 6, 841 04 Bratislava]
>
> mail: [phudec at postel.sk] www: [http://www.postel.sk/]
> cellular: [+421 905 997203] fax: [+421 2 50203198]
> phone: [+421 2 50203169]