@webwriter/network
Version:
Visualization of network topologies. Can represent different kinds of networks.
5 lines • 7.39 kB
HTML
<ww-network class="ww-widget ww-v0.0.1" screen="medium"
componets="[{"id":"host0","name":"host0","color":"#70e6af","type":"mobile","x":-264.024454782425,"y":-139.11977229410817,"ports":[{"name":"eth0","type":"ethernet","mac":"cf:e4:ff:e3:c7:3c","ip4":"1.1.1.2","ip6":"0:0:0:0:0:0:0:1"}],"portLinks":["graphEdge0"]},{"id":"host1","name":"host1","color":"#70e6af","type":"mobile","x":-265.3690426555197,"y":-86.70307088274684,"ports":[{"name":"eth0","type":"ethernet","mac":"5b:bc:85:54:b1:50","ip4":"1.1.1.3","ip6":"0:0:0:0:0:0:0:1"}],"portLinks":["graphEdge1"]},{"id":"host2","name":"host2","color":"#70e6af","type":"mobile","x":-266.7730997393322,"y":-41.39349743794498,"ports":[{"name":"eth0","type":"ethernet","mac":"c4:66:09:72:53:f1","ip4":"1.1.1.4","ip6":"0:0:0:0:0:0:0:1"}],"portLinks":["graphEdge2"]},{"id":"host3","name":"host3","color":"#70e6af","type":"mobile","x":-271.14214239485204,"y":97.96498557170715,"ports":[{"name":"eth0","type":"ethernet","mac":"be:13:39:f6:bf:12","ip4":"1.1.1.7","ip6":"0:0:0:0:0:0:0:1"}],"portLinks":["graphEdge7"]},{"id":"host4","name":"host4","color":"#70e6af","type":"mobile","x":-269.095317511683,"y":141.72585791982698,"ports":[{"name":"eth0","type":"ethernet","mac":"e9:62:11:30:a9:28","ip4":"1.1.1.6","ip6":"0:0:0:0:0:0:0:1"}],"portLinks":["graphEdge6"]},{"id":"host5","name":"host5","color":"#70e6af","type":"mobile","x":-273.21467286945494,"y":185.89287203344048,"ports":[{"name":"eth0","type":"ethernet","mac":"7d:4d:80:06:75:bc","ip4":"1.1.1.5","ip6":"0:0:0:0:0:0:0:1"}],"portLinks":["graphEdge5"]},{"id":"switch0","name":"switch0","color":"#70e6af","type":"switch","x":-230.0354313646289,"y":29.928720334405767,"ports":[{"name":"port","type":"ethernet","mac":"b6:3d:a8:94:24:93"},{"name":"port","type":"ethernet","mac":"f9:dd:75:d8:4e:ba"},{"name":"port","type":"ethernet","mac":"fc:16:6d:1e:f2:a2"}],"portLinks":["graphEdge4","graphEdge3",""]},{"id":"switch1","name":"switch1","color":"#70e6af","type":"switch","x":18.738085311039605,"y":-76.21383899678261,"ports":[{"name":"port","type":"ethernet","mac":"77:c8:f7:2a:b4:3f"},{"name":"port","type":"ethernet","mac":"06:12:e7:dd:6f:1f"},{"name":"port","type":"ethernet","mac":"40:43:77:2c:1f:0f"},{"name":"port","type":"ethernet","mac":"29:6b:77:1e:83:b2"}],"portLinks":["graphEdge0","graphEdge1","graphEdge2","graphEdge3"]},{"id":"switch2","name":"switch2","color":"#70e6af","type":"switch","x":9.441156193786467,"y":129.86925112368783,"ports":[{"name":"port","type":"ethernet","mac":"44:cd:14:5e:9d:2a"},{"name":"port","type":"ethernet","mac":"5f:65:4e:3a:c6:bb"},{"name":"port","type":"ethernet","mac":"b5:cf:0f:1f:06:70"},{"name":"port","type":"ethernet","mac":"fc:07:e0:ef:eb:7b"}],"portLinks":["graphEdge5","graphEdge4","graphEdge7","graphEdge6"]}]"
connections="[{"id":"graphEdge0","from":"host0","to":"switch1","inPort":1,"outPort":1,"color":"#70e6af"},{"id":"graphEdge1","from":"switch1","to":"host1","inPort":2,"outPort":1,"color":"#70e6af"},{"id":"graphEdge2","from":"host2","to":"switch1","inPort":1,"outPort":3,"color":"#70e6af"},{"id":"graphEdge3","from":"switch1","to":"switch0","inPort":4,"outPort":2,"color":"#70e6af"},{"id":"graphEdge4","from":"switch0","to":"switch2","inPort":1,"outPort":2,"color":"#70e6af"},{"id":"graphEdge5","from":"switch2","to":"host5","inPort":1,"outPort":1,"color":"#70e6af"},{"id":"graphEdge6","from":"switch2","to":"host4","inPort":4,"outPort":1,"color":"#70e6af"},{"id":"graphEdge7","from":"switch2","to":"host3","inPort":3,"outPort":1,"color":"#70e6af"}]"
networks="[{"id":"net0","componets":["host5","host4","host3","host2","host1","host0","switch2","switch1","switch0"],"gateways":[],"name":"1.1.1.0 /24","netmask":"255.255.255.0","bitmask":24,"address":"1.1.1.0","color":"#70e6af","x":-107.67840763215357,"y":-8.405099424653159}]"
contenteditable=""></ww-network>