# Get bit speed delta (so we dont have to provide custom delta limit)
ifInOps         : DELTA         : {ifInOctets}
ifOutOps        : DELTA         : {ifOutOctets}
# Convert our octets delta into bits per second
ifInBps         : MATH          : {ifInOps} x 8
ifOutBps        : MATH          : {ifOutOps} x 8
# Do delta transform on all error counters
ifInDps		: DELTA		: {ifInDiscards}
ifOutDps	: DELTA		: {ifOutDiscards}
# Perform error to traffic percentage calculations
ifInDscPct	: MATH		: ({ifInDps} / {ifInBps}) x 100
ifOutDscPct	: MATH		: ({ifOutDps} / {ifOutBps}) x 100
# Create an alias in a bracketed box, or nothing if alias is blank
ifAliasBox      : REGSUB        : {ifAlias} /(\S+.*)/ [$1]/
