[ixpmanager] update-l2database.pl and Juniper QFX5100
Leon Meßner
l.messner at physik.tu-berlin.de
Wed Feb 15 10:40:54 GMT 2017
Hi Nick,
On Tue, 14 Feb 2017 23:34:58 +0000
Nick Hilliard <nick at inex.ie> wrote:
> Leon Meßner wrote:
> > I did that and found two interesting oids that should be able to do
> > what is needed. First jnxL2aldVlanTag
>
> ok, interesting.
>
> > In [1] juniper mentions that non-ELS images have jnxExVlanTable and
> > ELS have this stuff. I wrote a patch which is attached but my perl
> > is very confined to copy&paste. If its still fine, i could open a
> > pull request on github.
>
> I've committed a minor variation of this patch, but haven't tested it.
> Can you check it out and see if it works for you?
>
> https://github.com/inex/IXP-Manager/commit/74cda00
looks like there is one ';' missing and i had to change it to use the
hostname field from the database. The version without hostname seems
to be on github for ages. I don't know why i have the other version.
Applying the attached diff then gives me a working skript:
DEBUG: cix-l105-mgmt.blu1-r1.syseleven.net: started query process
DEBUG: cix-l105-mgmt.blu1-r1.syseleven.net: pre-emptively trying Juniper jnxExVlanTag to see if we're on a J-EX box (.1.3.6.1.4.1.2636.3.40.1.5.1.5.1.5)
DEBUG: cix-l105-mgmt.blu1-r1.syseleven.net: this isn't a Juniper EX
DEBUG: cix-l105-mgmt.blu1-r1.syseleven.net: looks like this is a Juniper running an ELS image
DEBUG: cix-l105-mgmt.blu1-r1.syseleven.net: attempting to retrieve dot1qVlanFdbId mapping (.1.3.6.1.2.1.17.7.1.4.2.1.3)
DEBUG: cix-l105-mgmt.blu1-r1.syseleven.net: got mapping index: 2000 maps to 327680
DEBUG: cix-l105-mgmt.blu1-r1.syseleven.net: attempting Q-BRIDGE-MIB (.1.3.6.1.2.1.17.7.1.2.2.1.2.327680)
DEBUG: cix-l105-mgmt.blu1-r1.syseleven.net: Q-BRIDGE-MIB query successful
Regards,
Leon
-------------- next part --------------
A non-text attachment was scrubbed...
Name: update-l2database.pl.patch
Type: text/x-patch
Size: 1365 bytes
Desc: not available
URL: <https://www.inex.ie/pipermail/ixpmanager/attachments/20170215/b5fee9a7/attachment.bin>
More information about the ixpmanager
mailing list