GetPortFeatureId( PortFeatureType featureType) { string featureId; switch (featureType) { case PortFeatureType.Acl: featureId = "998BEF4A-5D55-492A-9C43-8B2F5EAE9F2B"; break; case PortFeatureType.Bandwidth: featureId = "24AD3CE1-69BD-4978-B2AC-DAAD389D699C"; break; case PortFeatureType.Offload: featureId = "C885BFD1-ABB7-418F-8163-9F379C9F7166"; break; case PortFeatureType.Profile: featureId = "9940CD46-8B06-43BB-B9D5-93D50381FD56"; break; case PortFeatureType.Security: featureId = "776E0BA7-94A1-41C8-8F28-951F524251B5"; break; case PortFeatureType.Vlan: featureId = "952C5004-4465-451C-8CB8-FA9AB382B773"; break; default: throw new ManagementException("The given port feature type is unrecognized."); } return(featureId); }
GetPortFeatureId( PortFeatureType featureType) { string featureId; switch (featureType) { case PortFeatureType.Acl: featureId = "998BEF4A-5D55-492A-9C43-8B2F5EAE9F2B"; break; case PortFeatureType.Bandwidth: featureId = "24AD3CE1-69BD-4978-B2AC-DAAD389D699C"; break; case PortFeatureType.Offload: featureId = "C885BFD1-ABB7-418F-8163-9F379C9F7166"; break; case PortFeatureType.Profile: featureId = "9940CD46-8B06-43BB-B9D5-93D50381FD56"; break; case PortFeatureType.Security: featureId = "776E0BA7-94A1-41C8-8F28-951F524251B5"; break; case PortFeatureType.Vlan: featureId = "952C5004-4465-451C-8CB8-FA9AB382B773"; break; default: throw new ManagementException("The given port feature type is unrecognized."); } return featureId; }