If the Port Mode is configured to be Fcoe, the 'type' attribute will end with Fcoe. For example, novusHundreGigLanFcoe. However, the object hierarchy is /ixnetwork/vport/1/l1Config/novusHundredGigLan, hence we have to strip 'Fcoe' at the end to make this function work for both Fcoe and Non-Fcoe mode.
The change should work for all card types.
If the Port Mode is configured to be Fcoe, the 'type' attribute will end with Fcoe. For example, novusHundreGigLanFcoe. However, the object hierarchy is /ixnetwork/vport/1/l1Config/novusHundredGigLan, hence we have to strip 'Fcoe' at the end to make this function work for both Fcoe and Non-Fcoe mode. The change should work for all card types.