Commit 69cfe0eb authored by Nigel Kukard's avatar Nigel Kukard

If $ref is undefined, return nothing

parent dc3e62d5
......@@ -859,6 +859,12 @@ sub getCIDFromTcClass
# Grab ref
my $ref = __getRefByMinorTcClass($interfaceID,$majorTcClass,$minorTcClass);
# If we're undefined return
if (!defined($ref)) {
return;
}
# If we're not a traffic class, just return
if (substr($ref,0,16) ne "_traffic_class_:") {
return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment