fixed crush when trying to import enum
fixed crush when trying to import enum

Signed-off-by: itraviv <d9922b8887db131d20f65fdcbad18ce7f1ad9059@cisco.com>

dimagol/trex-core,kisel/trex-core,kisel/trex-core,dimagol/trex-core,dimagol/trex-core,dimagol/trex-core,kisel/trex-core,kisel/trex-core,dimagol/trex-core,kisel/trex-core,dimagol/trex-core,kisel/trex-core