Commit b291f08d authored by Pablo Armingol's avatar Pablo Armingol
Browse files

code cleanup

parent b2191d0b
Loading
Loading
Loading
Loading
+9 −5
Original line number Diff line number Diff line
@@ -37,7 +37,7 @@ public class NodeNLRIMsg {
	private Logger log;
	private String nodeName;
	private String ISIS_ID_str;
	private String router_id;
	private String router_id="-";

	private String learntFrom;

@@ -69,7 +69,11 @@ public class NodeNLRIMsg {
				router_id=ISIS_ID_str;
			case 3:
				IGPID = nodeNLRI.getLocalNodeDescriptors().getIGPRouterID().getIpv4AddressOSPF();
				if(IGPID!=null){
					router_id=IGPID.toString();
				}else{
					System.out.println("Null IGPID (type OSPF)");
				}
				break;
			default:
				log.info("añadir este tipo de IGP Identifier por implementar ");
@@ -85,7 +89,7 @@ public class NodeNLRIMsg {
		if (nodeName != null) {
			this.nodeName = nodeName;
		}else{
			this.nodeName= this.IGPID.toString();
			this.nodeName= this.router_id;
		}
		log.info("End node processing");
	}
@@ -94,8 +98,8 @@ public class NodeNLRIMsg {
		// TODO: concatenate with stringBuffer

		String out = "";
		if (this.localBgplsID != null)
			out = out + "ID: " + this.localBgplsID + " ";// esto es id router??
		if (this.router_id != null)
			out = out + "ID: " + this.router_id + " ";// esto es id router??
		if (this.iPv4RouterIDLocalNodeLATLV != null)
			out = out + this.iPv4RouterIDLocalNodeLATLV.toString();
		if (this.iPv4RouterIDNeighborNodeLATLV != null)
+2 −4
Original line number Diff line number Diff line
@@ -77,7 +77,7 @@
                </tr>
            {% endif %}
        </tbody>
        <tbody>
        <!-- <tbody>
            {% if dislink %}
                {% for link in dislink %}
                <tr>
@@ -92,8 +92,6 @@
                                Add Link
                            </a>
                        </div>
                            
                    
                    </td>
                </tr>
                {% endfor %}
@@ -102,7 +100,7 @@
                    <td colspan="3">No devices found</td>
                </tr>
            {% endif %}
        </tbody>
        </tbody> -->
    </table>
        
    <script src="https://d3js.org/d3.v4.min.js"></script>