Skip to content
Snippets Groups Projects
Commit b291f08d authored by Pablo Armingol's avatar Pablo Armingol
Browse files

code cleanup

parent b2191d0b
No related branches found
No related tags found
2 merge requests!235Release TeraFlowSDN 3.0,!151Resolve "(TID) New BGP-LS Speaker component"
No preview for this file type
...@@ -37,7 +37,7 @@ public class NodeNLRIMsg { ...@@ -37,7 +37,7 @@ public class NodeNLRIMsg {
private Logger log; private Logger log;
private String nodeName; private String nodeName;
private String ISIS_ID_str; private String ISIS_ID_str;
private String router_id; private String router_id="-";
private String learntFrom; private String learntFrom;
...@@ -69,7 +69,11 @@ public class NodeNLRIMsg { ...@@ -69,7 +69,11 @@ public class NodeNLRIMsg {
router_id=ISIS_ID_str; router_id=ISIS_ID_str;
case 3: case 3:
IGPID = nodeNLRI.getLocalNodeDescriptors().getIGPRouterID().getIpv4AddressOSPF(); IGPID = nodeNLRI.getLocalNodeDescriptors().getIGPRouterID().getIpv4AddressOSPF();
router_id=IGPID.toString(); if(IGPID!=null){
router_id=IGPID.toString();
}else{
System.out.println("Null IGPID (type OSPF)");
}
break; break;
default: default:
log.info("añadir este tipo de IGP Identifier por implementar "); log.info("añadir este tipo de IGP Identifier por implementar ");
...@@ -85,7 +89,7 @@ public class NodeNLRIMsg { ...@@ -85,7 +89,7 @@ public class NodeNLRIMsg {
if (nodeName != null) { if (nodeName != null) {
this.nodeName = nodeName; this.nodeName = nodeName;
}else{ }else{
this.nodeName= this.IGPID.toString(); this.nodeName= this.router_id;
} }
log.info("End node processing"); log.info("End node processing");
} }
...@@ -94,8 +98,8 @@ public class NodeNLRIMsg { ...@@ -94,8 +98,8 @@ public class NodeNLRIMsg {
// TODO: concatenate with stringBuffer // TODO: concatenate with stringBuffer
String out = ""; String out = "";
if (this.localBgplsID != null) if (this.router_id != null)
out = out + "ID: " + this.localBgplsID + " ";// esto es id router?? out = out + "ID: " + this.router_id + " ";// esto es id router??
if (this.iPv4RouterIDLocalNodeLATLV != null) if (this.iPv4RouterIDLocalNodeLATLV != null)
out = out + this.iPv4RouterIDLocalNodeLATLV.toString(); out = out + this.iPv4RouterIDLocalNodeLATLV.toString();
if (this.iPv4RouterIDNeighborNodeLATLV != null) if (this.iPv4RouterIDNeighborNodeLATLV != null)
......
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,7 @@
</tr> </tr>
{% endif %} {% endif %}
</tbody> </tbody>
<tbody> <!-- <tbody>
{% if dislink %} {% if dislink %}
{% for link in dislink %} {% for link in dislink %}
<tr> <tr>
...@@ -92,8 +92,6 @@ ...@@ -92,8 +92,6 @@
Add Link Add Link
</a> </a>
</div> </div>
</td> </td>
</tr> </tr>
{% endfor %} {% endfor %}
...@@ -102,7 +100,7 @@ ...@@ -102,7 +100,7 @@
<td colspan="3">No devices found</td> <td colspan="3">No devices found</td>
</tr> </tr>
{% endif %} {% endif %}
</tbody> </tbody> -->
</table> </table>
<script src="https://d3js.org/d3.v4.min.js"></script> <script src="https://d3js.org/d3.v4.min.js"></script>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment