I'm trying to determine which interface to use for a multiple platform script, but running into an issue.
Regardless of the $device-model variable, it's matching the first line.
From juise:
print $device-model
[string] "SRX210HE-POE"
From SLAX:
var $adr-interface = {
if($device-model == "SRX100B" || "SRX100b"){
expr "fe-0/0/0.0";
}
else if($device-model == "SRX100H" || "SRX100h" ){
expr "fe-0/0/0.0";
}
else if($device-model == "SRX210H" || "SRX210h" || "SRX210HE-POE"){
expr "ge-0/0/0.0";
}
else if ($device-model == "SRX240H" || "SRX240h"){
expr "ge-0/0/0.0";
}
else {
expr jcs:syslog( "external.notice", $syslog-tag, "This is only designed for SRX100, SRX210, and SRX240 Devices. \nAttempting on ", $device-model);
<xsl:message terminate="yes">"This is only designed for SRX100, SRX210, and SRX240 Devices";
}
}
Any ideas?