2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-30 01:26:38 +00:00

Merge pull request #3518 from tindelli/master

blacklist HP trunk interfaces
This commit is contained in:
zet809 2017-07-25 13:58:08 +08:00 committed by GitHub
commit ddc06a3fa5

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...),