Marc De Leenheer
Committed by Gerrit Code Review

Method for getting port name

Change-Id: I0c8804835242dcbdbbf1595fa3c177cdf9809b6a
...@@ -111,6 +111,15 @@ public final class PortNumber { ...@@ -111,6 +111,15 @@ public final class PortNumber {
111 return number; 111 return number;
112 } 112 }
113 113
114 + /**
115 + * Returns the backing string value.
116 + *
117 + * @return port name as string value
118 + */
119 + public String name() {
120 + return name;
121 + }
122 +
114 private String decodeLogicalPort() { 123 private String decodeLogicalPort() {
115 if (number == CONTROLLER_NUMBER) { 124 if (number == CONTROLLER_NUMBER) {
116 return "CONTROLLER"; 125 return "CONTROLLER";
......