On 07/06/16 21:51, Rob Foehl wrote:
Does anyone have any clever methods for probing Enhanced Layer 2
Software support from a commit script on QFX/EX in order to generate
changes appropriate to the platform? Specifically looking for something
beyond checking hardware and version numbers, or for pieces of config
hierarchy that might not be present on any given box either way.
<rpc>
<get-ethernet-switching-table-information>
<summary/>
...returns substantially different XML b/w ELS and non-ELS IIRC. An EX3300:
<rpc-reply xmlns:junos="http://xml.juniper.net/junos/12.3R12/junos">
<ethernet-switching-table-information
...versus EX4300 w/ ELS:
<rpc-reply xmlns:junos="http://xml.juniper.net/junos/13.2X51/junos">
<l2ng-l2ald-rtb-macdb
That's how our off-box Junoscript code decides between ELS and not.
Should be easy enough from an op/commit script.
_______________________________________________
juniper-nsp mailing list juniper-nsp@puck.nether.net
https://puck.nether.net/mailman/listinfo/juniper-nsp