[irrtoolset]RtConfig template error in import/export Group
Peter Hudec phudec at postel.sk
Mon May 17 15:53:07 CEST 2004
Katie Petrusha wrote: > 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-]+ { I have done this patch for myself too. And the patch is working good. (answer to the question if the patch is working) > 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 > ... You have misunderstood me. If your peering-set name is AS8679:PRNG-SIX then the output is like .. -- CUT -- router bgp 8679 neighbor AS8679:PRNG-SIX peer-group neighbor AS8679:PRNG-SIX route-map AS8679-IMPORT-SIX in neighbor 192.108.148.10 remote-as AS2607 neighbor 192.108.148.10 peer-group AS8679:PRNG-SIX neighbor 192.108.148.15 remote-as AS12508 neighbor 192.108.148.15 peer-group AS8679:PRNG-SIX . . . -- CUT -- I want to replace the string AS8679:PRNG-SIX with someting else (I'm not sure if the cisco will accept hierarical names) The solution can by to add one optional parameter to the RtConfig importGroup/exportGroup line (name of the peering group) @RtConfig exportGroup <ASN-1> <peering-set-name> [config-peering-name] Instead of patchig RtConfig for this, I used sed to replace AS8679:PRNG-SIX to [config-peering-name] and it works also vell. It would be nice to implement this feature in the future, but I can live without it too. > Also, what about other peering-set names inside this peering-set? This could be problem with my soulution :(. > P.S. Later I'll have a look why it segfaults in 4.8.1. I have tried the precompiled binaries and also compiled one by myself. I'm not familiar so good with the code to repair it :(, so I will let it to the developers. best regards Peter Hudec -- An expert is anyone from out of town. 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]