OpenIxia / IxNetwork

A central location for IxNetwork sample scripts and utilities. Please also visit http://openixia.com
MIT License
50 stars 59 forks source link

fixed modifyL1Config() to handle portType with 'Fcoe' at the end. #51

Closed therkong closed 5 years ago

therkong commented 5 years ago

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.