@webwriter/network
Version:
Visualization of network topologies. Can represent different kinds of networks.
1 lines • 18.6 kB
HTML
<ww-network class="ww-widget ww-v0.0.1 ww-selected" contenteditable="" screen="medium" componets="[{"id":"host0","name":"host0","color":"#70e6af","type":"mobile","x":-306.024454782425,"y":-136.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"],"defaultGateway":["router2",1]},{"id":"host1","name":"host1","color":"#70e6af","type":"mobile","x":-307.3690426555197,"y":-83.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"],"defaultGateway":["router3",1]},{"id":"host2","name":"host2","color":"#70e6af","type":"mobile","x":-308.7730997393322,"y":-38.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"],"defaultGateway":["router2",1]},{"id":"host3","name":"host3","color":"#70e6af","type":"mobile","x":-313.14214239485204,"y":100.96498557170713,"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"],"defaultGateway":["router2",1]},{"id":"host4","name":"host4","color":"#70e6af","type":"mobile","x":-311.095317511683,"y":144.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"],"defaultGateway":["router3",1]},{"id":"host5","name":"host5","color":"#70e6af","type":"mobile","x":-315.21467286945494,"y":188.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"],"defaultGateway":["router2",1]},{"id":"switch0","name":"switch0","color":"#20b2aa","type":"switch","x":-272.0354313646289,"y":32.92872033440577,"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"},{"name":"port","type":"ethernet","mac":"28:d9:3b:6e:21:db"}],"portLinks":["graphEdge4","graphEdge3","graphEdge25","graphEdge26"]},{"id":"switch1","name":"switch1","color":"#20b2aa","type":"switch","x":-23.261914688960374,"y":-73.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":"#20b2aa","type":"switch","x":-32.55884380621352,"y":132.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"]},{"id":"accessPoint0","name":"accessPoint0","color":"#ff6347","type":"accesspoint","x":487.99999999999994,"y":168,"ports":[{"name":"port","type":"ethernet","mac":"a5:ba:57:96:67:83"},{"name":"port","type":"wireless","mac":"58:49:50:be:bb:0e"},{"name":"port","type":"wireless","mac":"86:24:88:d7:45:81"}],"portLinks":["graphEdge16","graphEdge9","graphEdge8"]},{"id":"accessPoint1","name":"accessPoint1","color":"#ff6347","type":"accesspoint","x":525,"y":-120,"ports":[{"name":"port","type":"ethernet","mac":"10:76:d5:03:1b:99"},{"name":"port","type":"wireless","mac":"d6:44:3f:02:e5:b5"},{"name":"port","type":"wireless","mac":"42:c3:00:99:aa:fc"}],"portLinks":["graphEdge14","graphEdge13","graphEdge12"]},{"id":"accessPoint2","name":"accessPoint2","color":"#ff6347","type":"accesspoint","x":528,"y":28.000000000000007,"ports":[{"name":"port","type":"ethernet","mac":"d8:83:bb:59:9c:e6"},{"name":"port","type":"wireless","mac":"cb:dd:77:e6:e0:5d"},{"name":"port","type":"wireless","mac":"8a:ef:10:1b:a6:be"}],"portLinks":["graphEdge15","graphEdge11","graphEdge10"]},{"id":"switch3","name":"switch3","color":"#ff6347","type":"switch","x":318.99999999999994,"y":29.000000000000007,"ports":[{"name":"port","type":"ethernet","mac":"66:75:73:c9:54:f4"},{"name":"port","type":"ethernet","mac":"91:69:0f:3f:1b:f5"},{"name":"port","type":"ethernet","mac":"32:0f:90:06:c9:cf"},{"name":"port","type":"ethernet","mac":"a6:cb:65:2f:51:d9"},{"name":"port","type":"ethernet","mac":"c9:6f:4f:94:dc:19"}],"portLinks":["graphEdge14","graphEdge15","graphEdge16","graphEdge22","graphEdge21"]},{"id":"host6","name":"host6","color":"#ffa07a","type":"mobile","x":723,"y":188,"ports":[{"name":"eth0","type":"wireless","mac":"6f:45:7c:f1:0d:0a","ip4":"2.2.2.8","ip6":"0:0:0:0:0:0:0:1"}],"portLinks":["graphEdge8"],"defaultGateway":["router3",2]},{"id":"host7","name":"host7","color":"#ffa07a","type":"mobile","x":727,"y":126,"ports":[{"name":"eth0","type":"wireless","mac":"26:75:ec:0c:e1:56","ip4":"2.2.2.7","ip6":"0:0:0:0:0:0:0:1"}],"portLinks":["graphEdge9"],"defaultGateway":["router2",2]},{"id":"host8","name":"host8","color":"#ffa07a","type":"mobile","x":733,"y":7.000000000000007,"ports":[{"name":"eth0","type":"wireless","mac":"72:a0:da:97:54:80","ip4":"2.2.2.5","ip6":"0:0:0:0:0:0:0:1"}],"portLinks":["graphEdge11"],"defaultGateway":["router2",2]},{"id":"host9","name":"host9","color":"#ffa07a","type":"mobile","x":743,"y":-143,"ports":[{"name":"eth0","type":"wireless","mac":"c9:c2:3c:d9:31:76","ip4":"2.2.2.2","ip6":"0:0:0:0:0:0:0:1"}],"portLinks":["graphEdge12"],"defaultGateway":["router3",2]},{"id":"host10","name":"host10","color":"#ffa07a","type":"mobile","x":739,"y":61.00000000000001,"ports":[{"name":"eth0","type":"wireless","mac":"e9:9e:e2:57:fa:33","ip4":"2.2.2.6","ip6":"0:0:0:0:0:0:0:1"}],"portLinks":["graphEdge10"],"defaultGateway":["router3",2]},{"id":"host11","name":"host11","color":"#ffa07a","type":"mobile","x":737,"y":-77,"ports":[{"name":"eth0","type":"wireless","mac":"92:a0:ea:87:e4:5e","ip4":"2.2.2.3","ip6":"0:0:0:0:0:0:0:1"}],"portLinks":["graphEdge13"],"defaultGateway":["router2",2]},{"id":"router2","name":"router2","color":"#70e6af","type":"router","x":90.09115103448259,"y":130.3149500314911,"ports":[{"name":"port-1","type":"ethernet","mac":"d4:9b:19:ee:97:d8","ip4":"1.1.1.129","ip6":"0:0:0:0:0:0:0:1"},{"name":"port-2","type":"ethernet","mac":"8b:29:d9:d0:ab:20","ip4":"2.2.2.129","ip6":"0:0:0:0:0:0:0:1"}],"portLinks":["graphEdge26","graphEdge22"]},{"id":"router3","name":"router3","color":"#70e6af","type":"router","x":87.13880979032402,"y":-34.51026973810133,"ports":[{"name":"port-1","type":"ethernet","mac":"16:ad:d4:e8:fd:b1","ip4":"1.1.1.128","ip6":"0:0:0:0:0:0:0:1"},{"name":"port-2","type":"ethernet","mac":"41:e2:d9:78:b1:0d","ip4":"2.2.2.128","ip6":"0:0:0:0:0:0:0:1"}],"portLinks":["graphEdge25","graphEdge21"]}]" 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"},{"id":"graphEdge8","from":"host6","to":"accessPoint0","inPort":1,"outPort":3,"color":"#ffa07a"},{"id":"graphEdge9","from":"accessPoint0","to":"host7","inPort":2,"outPort":1,"color":"#ffa07a"},{"id":"graphEdge10","from":"accessPoint2","to":"host10","inPort":3,"outPort":1,"color":"#ffa07a"},{"id":"graphEdge11","from":"accessPoint2","to":"host8","inPort":2,"outPort":1,"color":"#ffa07a"},{"id":"graphEdge12","from":"accessPoint1","to":"host9","inPort":3,"outPort":1,"color":"#70e6af"},{"id":"graphEdge13","from":"accessPoint1","to":"host11","inPort":2,"outPort":1,"color":"#ffa07a"},{"id":"graphEdge14","from":"accessPoint1","to":"switch3","inPort":1,"outPort":1,"color":"#70e6af"},{"id":"graphEdge15","from":"switch3","to":"accessPoint2","inPort":2,"outPort":1,"color":"#ffa07a"},{"id":"graphEdge16","from":"switch3","to":"accessPoint0","inPort":3,"outPort":1,"color":"#ffa07a"},{"id":"graphEdge25","from":"switch0","to":"router3","inPort":3,"outPort":1,"color":"#70e6af"},{"id":"graphEdge26","from":"switch0","to":"router2","inPort":4,"outPort":1,"color":"#70e6af"},{"id":"graphEdge21","from":"router3","to":"switch3","inPort":2,"outPort":5,"color":"#70e6af"},{"id":"graphEdge22","from":"router2","to":"switch3","inPort":2,"outPort":4,"color":"#70e6af"}]" networks="[{"id":"net0","componets":["host5","host4","host3","host2","host1","host0","switch2","switch1","switch0"],"gateways":["router2","router3"],"name":"1.1.1.0 /24","netmask":"255.255.255.0","bitmask":24,"address":"1.1.1.0","color":"#70e6af","x":-165.23829377920765,"y":34.386549869666155,"currentDefaultGateway":"router3"},{"id":"net1","componets":["accessPoint1","accessPoint2","accessPoint0","switch3","host11","host10","host9","host8","host7","host6"],"gateways":["router3","router2"],"netmask":"255.255.255.0","bitmask":24,"color":"#ffa07a","x":527,"y":30.5,"name":"2.2.2.0 /24","address":"2.2.2.0","currentDefaultGateway":"router2"}]"></ww-network>