2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-31 10:06:39 +00:00

blacklist HP trunk interfaces

This commit is contained in:
Tom Indelli 2017-07-20 14:40:48 -05:00
parent 1349d5b577
commit 7841a6a015

View File

@ -147,6 +147,12 @@ OID, and have the switch table port value match exactly the format suggested by
return 0;
}
#HP calls their PortChannel interfaces "trunks"
#designated as Trk1, etc. don't match those
if ($namepersnmp =~ /Trk/) {
return 0;
}
#The blacklist approach has been exhausted. For now, assuming that means good,
#if something ambiguous happens, the whitelist would have been:
#'Port','Port #','/' (if namepercfg has no /, then / would be...),