X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fweb%2Ftroubleshoot%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Ftroubleshoot%2Fweb%2FTroubleshoot.java;fp=opendaylight%2Fweb%2Ftroubleshoot%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Ftroubleshoot%2Fweb%2FTroubleshoot.java;h=e46b89ac2afe3fa2f46604f5a7f3fde2298181b3;hp=eab07418b46fa51ff9fd3524dc0160337537c70c;hb=f24c44fc653aee69b821ac3f379ecde18c395614;hpb=77cbb9cd1fc983b6b2c6cb6bf17e16a964c987d3 diff --git a/opendaylight/web/troubleshoot/src/main/java/org/opendaylight/controller/troubleshoot/web/Troubleshoot.java b/opendaylight/web/troubleshoot/src/main/java/org/opendaylight/controller/troubleshoot/web/Troubleshoot.java index eab07418b4..e46b89ac2a 100644 --- a/opendaylight/web/troubleshoot/src/main/java/org/opendaylight/controller/troubleshoot/web/Troubleshoot.java +++ b/opendaylight/web/troubleshoot/src/main/java/org/opendaylight/controller/troubleshoot/web/Troubleshoot.java @@ -361,50 +361,39 @@ public class Troubleshoot implements IDaylightWeb { if (outPorts.length() > 0) { outPorts.append(" "); } - actions.append(action.getType().toString() + " = " - + ao.getPort().getNodeConnectorIdAsString() + "
"); + actions.append(action.getType().toString()).append(" = ").append(ao.getPort().getNodeConnectorIdAsString()).append("
"); } else if (action instanceof SetVlanId) { SetVlanId av = (SetVlanId) action; String outVlanId = String.valueOf(av.getVlanId()); - actions.append(action.getType().toString() + " = " + outVlanId - + "
"); + actions.append(action.getType().toString()).append(" = ").append(outVlanId).append("
"); } else if (action instanceof SetDlSrc) { SetDlSrc ads = (SetDlSrc) action; - actions.append(action.getType().toString() + " = " - + HexEncode.bytesToHexStringFormat(ads.getDlAddress()) + "
"); + actions.append(action.getType().toString()).append(" = ").append(HexEncode.bytesToHexStringFormat(ads.getDlAddress())).append("
"); } else if (action instanceof SetDlDst) { SetDlDst add = (SetDlDst) action; - actions.append(action.getType().toString() + " = " - + HexEncode.bytesToHexStringFormat(add.getDlAddress()) - + "
"); + actions.append(action.getType().toString()).append(" = ").append(HexEncode.bytesToHexStringFormat(add.getDlAddress())).append("
"); } else if (action instanceof SetNwSrc) { SetNwSrc ans = (SetNwSrc) action; - actions.append(action.getType().toString() + " = " - + ans.getAddressAsString() + "
"); + actions.append(action.getType().toString()).append(" = ").append(ans.getAddressAsString()).append("
"); } else if (action instanceof SetNwDst) { SetNwDst and = (SetNwDst) action; - actions.append(action.getType().toString() + " = " - + and.getAddressAsString() + "
"); + actions.append(action.getType().toString()).append(" = ").append(and.getAddressAsString()).append("
"); } else if (action instanceof SetNwTos) { SetNwTos ant = (SetNwTos) action; - actions.append(action.getType().toString() + " = " - + ant.getNwTos() + "
"); + actions.append(action.getType().toString()).append(" = ").append(ant.getNwTos()).append("
"); } else if (action instanceof SetTpSrc) { SetTpSrc ads = (SetTpSrc) action; - actions.append(action.getType().toString() + " = " - + ads.getPort() + "
"); + actions.append(action.getType().toString()).append(" = ").append(ads.getPort()).append("
"); } else if (action instanceof SetTpDst) { SetTpDst atd = (SetTpDst) action; - actions.append(action.getType().toString() + " = " - + atd.getPort() + "
"); + actions.append(action.getType().toString()).append(" = ").append(atd.getPort()).append("
"); } else if (action instanceof SetVlanPcp) { SetVlanPcp avp = (SetVlanPcp) action; - actions.append(action.getType().toString() + " = " - + avp.getPcp() + "
"); + actions.append(action.getType().toString()).append(" = ").append(avp.getPcp()).append("
"); // } else if (action instanceof SetDlSrc) { // SetDlSrc ads = (SetDlSrc) action; } else { - actions.append(action.getType().toString() + "
"); + actions.append(action.getType().toString()).append("
"); } } row.put("actions", actions.toString());