1 package org.opendaylight.mwtn.base.netconf;
3 import org.slf4j.Logger;
4 import org.slf4j.LoggerFactory;
6 public enum ONFLayerProtocolName {
8 MWAirInterface("MWPS"), //V1.0 + V1.2
9 EthernetContainer10("ETH-CTP"), //V1.0
10 EthernetContainer12("ETC"), //V1.2
11 EthernetPhysical("ETY"), //V1.2
12 TDMContainer("TDM"), //V1.2
13 Structure("MWS"), //V1.0 + V1.2
14 Ethernet("ETH"), //V1.2
17 private static final Logger LOG = LoggerFactory.getLogger(ONFLayerProtocolName.class);
19 private final String myLayerProtocolName;
21 ONFLayerProtocolName( String myLayerProtocolName ) {
22 this.myLayerProtocolName = myLayerProtocolName;
25 public boolean is( org.opendaylight.yang.gen.v1.urn.onf.params.xml.ns.yang.core.model.rev170320.LayerProtocolName onfName ) {
26 return myLayerProtocolName.equals(onfName.getValue());
29 public boolean is( org.opendaylight.yang.gen.v1.uri.onf.coremodel.corenetworkmodule.typedefinitions.rev160710.LayerProtocolName onfName ) {
30 return myLayerProtocolName.equals(onfName.getValue());
33 public static ONFLayerProtocolName valueOf( org.opendaylight.yang.gen.v1.urn.onf.params.xml.ns.yang.core.model.rev170320.LayerProtocolName onfName ) {
34 for (ONFLayerProtocolName protocol : ONFLayerProtocolName.values()) {
35 if (protocol.is(onfName)) {
39 LOG.info("Can not map {}. Use Unknown",onfName.getValue() );
43 public static ONFLayerProtocolName valueOf( org.opendaylight.yang.gen.v1.uri.onf.coremodel.corenetworkmodule.typedefinitions.rev160710.LayerProtocolName onfName ) {
44 for (ONFLayerProtocolName protocol : ONFLayerProtocolName.values()) {
45 if (protocol.is(onfName)) {
49 LOG.info("Can not map {}. Use Unknown",onfName.getValue() );