Skip to content

Instantly share code, notes, and snippets.

@VV0JC13CH
Created September 19, 2020 14:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save VV0JC13CH/7e701a7f6e257d714833e16daff3b519 to your computer and use it in GitHub Desktop.
Save VV0JC13CH/7e701a7f6e257d714833e16daff3b519 to your computer and use it in GitHub Desktop.
Network drawing python modules test. Description here: https://bitstudio.dev/drawing-network-topologies-in-python/
from N2G import drawio_diagram
diagram = drawio_diagram()
diagram.add_diagram("Page-1")
diagram.add_node(id='ONT', label='ONT 192.168.1.1 192.168.2.1')
diagram.add_node(id='Router', label='Router 192.168.1.2')
diagram.add_node(id='Switch', label='Switch 192.168.1.3')
diagram.add_node(id='Monitoring', label='Monitoring 192.168.1.4 192.168.2.2')
diagram.add_node(id='Server', label='Server 192.168.1.5 192.168.2.3')
# Switch (10x 1Gbit Lan)
diagram.add_link(source='ONT', target='Switch', label='Gig0/1---Gig0/1')
# Access Point (3x 1Gi Lan, 1x 1Gi Wan)
diagram.add_link(source='Router', target='Switch', label='Gig0/1---Gig0/9')
# Server (2x 1Gi Lan)
diagram.add_link(source='Server', target='Switch', label='Gig0/1---Gig0/4')
diagram.add_link(source='Server', target='ONT', label='Gig0/2---Gig0/2')
# Recorder
diagram.add_link(source='Monitoring', target='Switch', label='Gig0/1---Gig0/3')
diagram.add_link(source='Monitoring', target='ONT', label='Gig0/2---Gig0/3')
diagram.layout(algo="kk")
diagram.dump_file(filename="output_drawio.drawio", folder="./diagrams/")
from N2G import yed_diagram
diagram = yed_diagram()
diagram.add_node(id='ONT', top_label='192.168.2.1', bottom_label='192.168.1.1')
diagram.add_node(id='Router', bottom_label='192.168.1.2')
diagram.add_node(id='Switch', bottom_label='192.168.1.3')
diagram.add_node(id='Monitoring', top_label='192.168.2.2', bottom_label='192.168.1.4')
diagram.add_node(id='Server', top_label='192.168.2.3', bottom_label='192.168.1.5')
# Switch (10x 1Gbit Lan)
diagram.add_link(source='ONT', target='Switch', src_label='Gig0/1', trgt_label='Gig0/1')
# Access Point (3x 1Gi Lan, 1x 1Gi Wan)
diagram.add_link(source='Router', target='Switch', src_label='Gig0/1', trgt_label='Gig0/9')
# Server (2x 1Gi Lan)
diagram.add_link(source='Server', target='Switch', src_label='Gig0/1', trgt_label='Gig0/4')
diagram.add_link(source='Server', target='ONT', src_label='Gig0/2', trgt_label='Gig0/2')
# Recorder
diagram.add_link(source='Monitoring', target='Switch', src_label='Gig0/1', trgt_label='Gig0/3')
diagram.add_link(source='Monitoring', target='ONT', src_label='Gig0/2', trgt_label='Gig0/3')
diagram.layout(algo="kk")
diagram.dump_file(filename="output_yEd.graphml", folder="./diagrams/")
nwdiag {
// define group at outside network definitions
WAN [shape = cloud];
WAN -- GPON;
group Rack {
color = "#D3D3D3";
GPON;
Switch;
Monitoring;
DellServer;
}
network Internal {
address = "192.168.1.x/24"
GPON [address = "192.168.1.1"];
Switch [address = "192.168.1.3"];
Monitoring [address = "192.168.1.4"];
DellServer [address = "192.168.1.5"];
AccessPoint [address = "192.168.1.2"];
}
network External {
address = "192.168.2.x/24"
GPON [address = "192.168.2.1"];
Monitoring [address = "192.168.2.1"];
DellServer [address = "192.168.2.2"];
}
}
import nwdiag
import os
diagrams_default_dir = 'diagrams'
command_diag_to_png = 'nwdiag'
def nwdiag_convert_to_png_batch(directory=diagrams_default_dir):
for file in os.listdir(os.path.join(os.path.dirname(__file__), directory)):
if file.endswith(".diag"):
os.system(command_diag_to_png + ' ' + (os.path.join(os.path.dirname(__file__), directory, file)))
def nwdiag_convert_to_png(file):
os.system(command_diag_to_png + ' ' + (os.path.join(os.path.dirname(__file__), file)))
source_file = os.path.dirname(__file__) + '/diagrams/nwdiag.diag'
nwdiag_convert_to_png(source_file)
<mxfile compressed="false" host="Electron" modified="2020-09-19T10:55:06.542Z" agent="5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/13.6.2 Chrome/83.0.4103.122 Electron/9.2.0 Safari/537.36" version="13.6.2" etag="ikeGXAOA0xhv6J5iEk2d" type="device">
<diagram id="Page-1" name="Page-1">
<mxGraphModel dx="946" dy="615" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="1">
<root>
<mxCell id="0" />
<mxCell id="1" parent="0" />
<object label="ONT 192.168.1.1 192.168.2.1" id="ONT">
<mxCell style="rounded=1;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="220" y="120" width="120" height="60" as="geometry" />
</mxCell>
</object>
<object label="Router 192.168.1.2" id="Router">
<mxCell style="rounded=1;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="220" width="120" height="60" as="geometry" />
</mxCell>
</object>
<object label="Switch 192.168.1.3" id="Switch">
<mxCell style="rounded=1;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="440" y="90" width="120" height="60" as="geometry" />
</mxCell>
</object>
<object label="Monitoring 192.168.1.4 192.168.2.2" id="Monitoring">
<mxCell style="rounded=1;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry y="30" width="120" height="60" as="geometry" />
</mxCell>
</object>
<object label="Server 192.168.1.5 192.168.2.3" id="Server">
<mxCell style="rounded=1;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry y="150" width="120" height="60" as="geometry" />
</mxCell>
</object>
<object label="Gig0/1---Gig0/1" id="dcf2fe5c9c91bf515139cc2643f2a18a">
<mxCell style="endArrow=none;noEdgeStyle=1;orthogonal=1;" parent="1" source="ONT" target="Switch" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="352" y="150" />
<mxPoint x="426" y="126.25" />
</Array>
</mxGeometry>
</mxCell>
</object>
<object label="Gig0/1---Gig0/9" id="915d31e8d761c3ca593083f2b758a926">
<mxCell style="endArrow=none;noEdgeStyle=1;orthogonal=1;" parent="1" source="Router" target="Switch" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="352" y="30" />
<mxPoint x="428" y="101.25" />
</Array>
</mxGeometry>
</mxCell>
</object>
<object label="Gig0/1---Gig0/4" id="d5fefb813f96f38bcd413531bc75d78e">
<mxCell style="endArrow=none;noEdgeStyle=1;orthogonal=1;" parent="1" source="Server" target="Switch" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="132" y="192.5" />
<mxPoint x="170" y="210" />
<mxPoint x="390" y="210" />
<mxPoint x="428" y="138.75" />
</Array>
</mxGeometry>
</mxCell>
</object>
<object label="Gig0/2---Gig0/2" id="6387f57832a79b8be8564552597237ba">
<mxCell style="endArrow=none;noEdgeStyle=1;orthogonal=1;" parent="1" source="Server" target="ONT" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="132" y="167.5" />
<mxPoint x="208" y="162.5" />
</Array>
</mxGeometry>
</mxCell>
</object>
<object label="Gig0/1---Gig0/3" id="92ea5ecc0a8317389baa47ff29234127">
<mxCell style="endArrow=none;noEdgeStyle=1;orthogonal=1;" parent="1" source="Monitoring" target="Switch" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="132" y="47.5" />
<mxPoint x="170" y="90" />
<mxPoint x="390" y="90" />
<mxPoint x="426" y="113.75" />
</Array>
</mxGeometry>
</mxCell>
</object>
<object label="Gig0/2---Gig0/3" id="3d649be6e94ed8cce5ef8f47ee31e8a8">
<mxCell style="endArrow=none;noEdgeStyle=1;orthogonal=1;" parent="1" source="Monitoring" target="ONT" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="132" y="72.5" />
<mxPoint x="208" y="137.5" />
</Array>
</mxGeometry>
</mxCell>
</object>
</root>
</mxGraphModel>
</diagram>
</mxfile>
<graphml xmlns="http://graphml.graphdrawing.org/xmlns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:y="http://www.yworks.com/xml/graphml" xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns http://www.yworks.com/xml/schema/graphml/1.1/ygraphml.xsd">
<key attr.name="Description" attr.type="string" for="graph" id="d0" />
<key for="port" id="d1" yfiles.type="portgraphics" />
<key for="port" id="d2" yfiles.type="portgeometry" />
<key for="port" id="d3" yfiles.type="portuserdata" />
<key attr.name="url" attr.type="string" for="node" id="d4" />
<key attr.name="description" attr.type="string" for="node" id="d5" />
<key for="node" id="d6" yfiles.type="nodegraphics" />
<key for="graphml" id="d7" yfiles.type="resources" />
<key attr.name="url" attr.type="string" for="edge" id="d8" />
<key attr.name="description" attr.type="string" for="edge" id="d9" />
<key for="edge" id="d10" yfiles.type="edgegraphics" />
<key attr.name="nmetadata" attr.type="string" for="node" id="d11">
<default />
</key>
<key attr.name="emetadata" attr.type="string" for="edge" id="d12">
<default />
</key>
<key attr.name="gmetadata" attr.type="string" for="graph" id="d13">
<default />
</key>
<graph edgedefault="directed" id="G">
<node id="ONT">
<data key="d6">
<y:ShapeNode>
<y:Geometry height="60" width="120" x="916" y="240" />
<y:Fill color="#FFFFFF" transparent="false" />
<y:BorderStyle color="#000000" raised="false" type="line" width="3.0" />
<y:Shape type="roundrectangle" />
<y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" height="18" horizontalTextPosition="center" iconTextGap="4" modelName="internal" modelPosition="c" textColor="#000000" verticalTextPosition="bottom" visible="true" width="70">ONT</y:NodeLabel><y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" height="18" horizontalTextPosition="center" iconTextGap="4" modelName="internal" modelPosition="t" textColor="#000000" verticalTextPosition="bottom" visible="true" width="70">192.168.2.1</y:NodeLabel><y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" height="18" horizontalTextPosition="center" iconTextGap="4" modelName="internal" modelPosition="b" textColor="#000000" verticalTextPosition="bottom" visible="true" width="70">192.168.1.1</y:NodeLabel></y:ShapeNode>
</data>
<data key="d11">{"id": "ONT"}</data></node><node id="Router">
<data key="d6">
<y:ShapeNode>
<y:Geometry height="60" width="120" x="867" y="864" />
<y:Fill color="#FFFFFF" transparent="false" />
<y:BorderStyle color="#000000" raised="false" type="line" width="3.0" />
<y:Shape type="roundrectangle" />
<y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" height="18" horizontalTextPosition="center" iconTextGap="4" modelName="internal" modelPosition="c" textColor="#000000" verticalTextPosition="bottom" visible="true" width="70">Router</y:NodeLabel><y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" height="18" horizontalTextPosition="center" iconTextGap="4" modelName="internal" modelPosition="b" textColor="#000000" verticalTextPosition="bottom" visible="true" width="70">192.168.1.2</y:NodeLabel></y:ShapeNode>
</data>
<data key="d11">{"id": "Router"}</data></node><node id="Switch">
<data key="d6">
<y:ShapeNode>
<y:Geometry height="60" width="120" x="746" y="483" />
<y:Fill color="#FFFFFF" transparent="false" />
<y:BorderStyle color="#000000" raised="false" type="line" width="3.0" />
<y:Shape type="roundrectangle" />
<y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" height="18" horizontalTextPosition="center" iconTextGap="4" modelName="internal" modelPosition="c" textColor="#000000" verticalTextPosition="bottom" visible="true" width="70">Switch</y:NodeLabel><y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" height="18" horizontalTextPosition="center" iconTextGap="4" modelName="internal" modelPosition="b" textColor="#000000" verticalTextPosition="bottom" visible="true" width="70">192.168.1.3</y:NodeLabel></y:ShapeNode>
</data>
<data key="d11">{"id": "Switch"}</data></node><node id="Monitoring">
<data key="d6">
<y:ShapeNode>
<y:Geometry height="60" width="120" x="444" y="332" />
<y:Fill color="#FFFFFF" transparent="false" />
<y:BorderStyle color="#000000" raised="false" type="line" width="3.0" />
<y:Shape type="roundrectangle" />
<y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" height="18" horizontalTextPosition="center" iconTextGap="4" modelName="internal" modelPosition="c" textColor="#000000" verticalTextPosition="bottom" visible="true" width="70">Monitoring</y:NodeLabel><y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" height="18" horizontalTextPosition="center" iconTextGap="4" modelName="internal" modelPosition="t" textColor="#000000" verticalTextPosition="bottom" visible="true" width="70">192.168.2.2</y:NodeLabel><y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" height="18" horizontalTextPosition="center" iconTextGap="4" modelName="internal" modelPosition="b" textColor="#000000" verticalTextPosition="bottom" visible="true" width="70">192.168.1.4</y:NodeLabel></y:ShapeNode>
</data>
<data key="d11">{"id": "Monitoring"}</data></node><node id="Server">
<data key="d6">
<y:ShapeNode>
<y:Geometry height="60" width="120" x="765" y="0" />
<y:Fill color="#FFFFFF" transparent="false" />
<y:BorderStyle color="#000000" raised="false" type="line" width="3.0" />
<y:Shape type="roundrectangle" />
<y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" height="18" horizontalTextPosition="center" iconTextGap="4" modelName="internal" modelPosition="c" textColor="#000000" verticalTextPosition="bottom" visible="true" width="70">Server</y:NodeLabel><y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" height="18" horizontalTextPosition="center" iconTextGap="4" modelName="internal" modelPosition="t" textColor="#000000" verticalTextPosition="bottom" visible="true" width="70">192.168.2.3</y:NodeLabel><y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" height="18" horizontalTextPosition="center" iconTextGap="4" modelName="internal" modelPosition="b" textColor="#000000" verticalTextPosition="bottom" visible="true" width="70">192.168.1.5</y:NodeLabel></y:ShapeNode>
</data>
<data key="d11">{"id": "Server"}</data></node><edge id="73fbc5ff30395abeee421b5b6ff74a5a" source="ONT" target="Switch">
<data key="d10">
<y:PolyLineEdge>
<y:LineStyle color="#000000" type="line" width="1.0" />
<y:Arrows source="none" target="none" />
<y:BendStyle smoothed="false" />
<y:EdgeLabel alignment="center" backgroundColor="#FFFFFF" configuration="AutoFlippingLabel" distance="2.0" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasLineColor="false" height="18" horizontalTextPosition="center" iconTextGap="4" modelName="free" modelPosition="anywhere" preferredPlacement="target_on_edge" ratio="0.5" textColor="#000000" upX="-1.0" upY="-6E-17" verticalTextPosition="bottom" visible="true" width="32">Gig0/1<y:PreferredPlacementDescriptor angle="0.0" angleOffsetOnRightSide="0" angleReference="relative_to_edge_flow" angleRotationOnRightSide="co" distance="-1.0" placement="source" side="on_edge" sideReference="relative_to_edge_flow" />
</y:EdgeLabel><y:EdgeLabel alignment="center" backgroundColor="#FFFFFF" configuration="AutoFlippingLabel" distance="2.0" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasLineColor="false" height="18" horizontalTextPosition="center" iconTextGap="4" modelName="free" modelPosition="anywhere" preferredPlacement="target_on_edge" ratio="0.5" textColor="#000000" upX="-1.0" upY="-6E-17" verticalTextPosition="bottom" visible="true" width="32">Gig0/1<y:PreferredPlacementDescriptor angle="0.0" angleOffsetOnRightSide="0" angleReference="relative_to_edge_flow" angleRotationOnRightSide="co" distance="-1.0" placement="target" side="on_edge" sideReference="relative_to_edge_flow" />
</y:EdgeLabel></y:PolyLineEdge>
</data>
<data key="d12">{"sid": "ONT", "tid": "Switch", "id": "73fbc5ff30395abeee421b5b6ff74a5a"}</data></edge><edge id="142d3dea321c90b9756e49c89260a5f3" source="Router" target="Switch">
<data key="d10">
<y:PolyLineEdge>
<y:LineStyle color="#000000" type="line" width="1.0" />
<y:Arrows source="none" target="none" />
<y:BendStyle smoothed="false" />
<y:EdgeLabel alignment="center" backgroundColor="#FFFFFF" configuration="AutoFlippingLabel" distance="2.0" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasLineColor="false" height="18" horizontalTextPosition="center" iconTextGap="4" modelName="free" modelPosition="anywhere" preferredPlacement="target_on_edge" ratio="0.5" textColor="#000000" upX="-1.0" upY="-6E-17" verticalTextPosition="bottom" visible="true" width="32">Gig0/1<y:PreferredPlacementDescriptor angle="0.0" angleOffsetOnRightSide="0" angleReference="relative_to_edge_flow" angleRotationOnRightSide="co" distance="-1.0" placement="source" side="on_edge" sideReference="relative_to_edge_flow" />
</y:EdgeLabel><y:EdgeLabel alignment="center" backgroundColor="#FFFFFF" configuration="AutoFlippingLabel" distance="2.0" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasLineColor="false" height="18" horizontalTextPosition="center" iconTextGap="4" modelName="free" modelPosition="anywhere" preferredPlacement="target_on_edge" ratio="0.5" textColor="#000000" upX="-1.0" upY="-6E-17" verticalTextPosition="bottom" visible="true" width="32">Gig0/9<y:PreferredPlacementDescriptor angle="0.0" angleOffsetOnRightSide="0" angleReference="relative_to_edge_flow" angleRotationOnRightSide="co" distance="-1.0" placement="target" side="on_edge" sideReference="relative_to_edge_flow" />
</y:EdgeLabel></y:PolyLineEdge>
</data>
<data key="d12">{"sid": "Router", "tid": "Switch", "id": "142d3dea321c90b9756e49c89260a5f3"}</data></edge><edge id="eeb9b28ccb423d29cc1bdefc1cc7bc24" source="Server" target="Switch">
<data key="d10">
<y:PolyLineEdge>
<y:LineStyle color="#000000" type="line" width="1.0" />
<y:Arrows source="none" target="none" />
<y:BendStyle smoothed="false" />
<y:EdgeLabel alignment="center" backgroundColor="#FFFFFF" configuration="AutoFlippingLabel" distance="2.0" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasLineColor="false" height="18" horizontalTextPosition="center" iconTextGap="4" modelName="free" modelPosition="anywhere" preferredPlacement="target_on_edge" ratio="0.5" textColor="#000000" upX="-1.0" upY="-6E-17" verticalTextPosition="bottom" visible="true" width="32">Gig0/1<y:PreferredPlacementDescriptor angle="0.0" angleOffsetOnRightSide="0" angleReference="relative_to_edge_flow" angleRotationOnRightSide="co" distance="-1.0" placement="source" side="on_edge" sideReference="relative_to_edge_flow" />
</y:EdgeLabel><y:EdgeLabel alignment="center" backgroundColor="#FFFFFF" configuration="AutoFlippingLabel" distance="2.0" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasLineColor="false" height="18" horizontalTextPosition="center" iconTextGap="4" modelName="free" modelPosition="anywhere" preferredPlacement="target_on_edge" ratio="0.5" textColor="#000000" upX="-1.0" upY="-6E-17" verticalTextPosition="bottom" visible="true" width="32">Gig0/4<y:PreferredPlacementDescriptor angle="0.0" angleOffsetOnRightSide="0" angleReference="relative_to_edge_flow" angleRotationOnRightSide="co" distance="-1.0" placement="target" side="on_edge" sideReference="relative_to_edge_flow" />
</y:EdgeLabel></y:PolyLineEdge>
</data>
<data key="d12">{"sid": "Server", "tid": "Switch", "id": "eeb9b28ccb423d29cc1bdefc1cc7bc24"}</data></edge><edge id="418e7a7b3e89fa91377866354c632736" source="Server" target="ONT">
<data key="d10">
<y:PolyLineEdge>
<y:LineStyle color="#000000" type="line" width="1.0" />
<y:Arrows source="none" target="none" />
<y:BendStyle smoothed="false" />
<y:EdgeLabel alignment="center" backgroundColor="#FFFFFF" configuration="AutoFlippingLabel" distance="2.0" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasLineColor="false" height="18" horizontalTextPosition="center" iconTextGap="4" modelName="free" modelPosition="anywhere" preferredPlacement="target_on_edge" ratio="0.5" textColor="#000000" upX="-1.0" upY="-6E-17" verticalTextPosition="bottom" visible="true" width="32">Gig0/2<y:PreferredPlacementDescriptor angle="0.0" angleOffsetOnRightSide="0" angleReference="relative_to_edge_flow" angleRotationOnRightSide="co" distance="-1.0" placement="source" side="on_edge" sideReference="relative_to_edge_flow" />
</y:EdgeLabel><y:EdgeLabel alignment="center" backgroundColor="#FFFFFF" configuration="AutoFlippingLabel" distance="2.0" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasLineColor="false" height="18" horizontalTextPosition="center" iconTextGap="4" modelName="free" modelPosition="anywhere" preferredPlacement="target_on_edge" ratio="0.5" textColor="#000000" upX="-1.0" upY="-6E-17" verticalTextPosition="bottom" visible="true" width="32">Gig0/2<y:PreferredPlacementDescriptor angle="0.0" angleOffsetOnRightSide="0" angleReference="relative_to_edge_flow" angleRotationOnRightSide="co" distance="-1.0" placement="target" side="on_edge" sideReference="relative_to_edge_flow" />
</y:EdgeLabel></y:PolyLineEdge>
</data>
<data key="d12">{"sid": "Server", "tid": "ONT", "id": "418e7a7b3e89fa91377866354c632736"}</data></edge><edge id="79d0907feab6de28d90385053cb3d8e4" source="Monitoring" target="Switch">
<data key="d10">
<y:PolyLineEdge>
<y:LineStyle color="#000000" type="line" width="1.0" />
<y:Arrows source="none" target="none" />
<y:BendStyle smoothed="false" />
<y:EdgeLabel alignment="center" backgroundColor="#FFFFFF" configuration="AutoFlippingLabel" distance="2.0" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasLineColor="false" height="18" horizontalTextPosition="center" iconTextGap="4" modelName="free" modelPosition="anywhere" preferredPlacement="target_on_edge" ratio="0.5" textColor="#000000" upX="-1.0" upY="-6E-17" verticalTextPosition="bottom" visible="true" width="32">Gig0/1<y:PreferredPlacementDescriptor angle="0.0" angleOffsetOnRightSide="0" angleReference="relative_to_edge_flow" angleRotationOnRightSide="co" distance="-1.0" placement="source" side="on_edge" sideReference="relative_to_edge_flow" />
</y:EdgeLabel><y:EdgeLabel alignment="center" backgroundColor="#FFFFFF" configuration="AutoFlippingLabel" distance="2.0" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasLineColor="false" height="18" horizontalTextPosition="center" iconTextGap="4" modelName="free" modelPosition="anywhere" preferredPlacement="target_on_edge" ratio="0.5" textColor="#000000" upX="-1.0" upY="-6E-17" verticalTextPosition="bottom" visible="true" width="32">Gig0/3<y:PreferredPlacementDescriptor angle="0.0" angleOffsetOnRightSide="0" angleReference="relative_to_edge_flow" angleRotationOnRightSide="co" distance="-1.0" placement="target" side="on_edge" sideReference="relative_to_edge_flow" />
</y:EdgeLabel></y:PolyLineEdge>
</data>
<data key="d12">{"sid": "Monitoring", "tid": "Switch", "id": "79d0907feab6de28d90385053cb3d8e4"}</data></edge><edge id="631c97275a076fcf71f3719d90d0017b" source="Monitoring" target="ONT">
<data key="d10">
<y:PolyLineEdge>
<y:LineStyle color="#000000" type="line" width="1.0" />
<y:Arrows source="none" target="none" />
<y:BendStyle smoothed="false" />
<y:EdgeLabel alignment="center" backgroundColor="#FFFFFF" configuration="AutoFlippingLabel" distance="2.0" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasLineColor="false" height="18" horizontalTextPosition="center" iconTextGap="4" modelName="free" modelPosition="anywhere" preferredPlacement="target_on_edge" ratio="0.5" textColor="#000000" upX="-1.0" upY="-6E-17" verticalTextPosition="bottom" visible="true" width="32">Gig0/2<y:PreferredPlacementDescriptor angle="0.0" angleOffsetOnRightSide="0" angleReference="relative_to_edge_flow" angleRotationOnRightSide="co" distance="-1.0" placement="source" side="on_edge" sideReference="relative_to_edge_flow" />
</y:EdgeLabel><y:EdgeLabel alignment="center" backgroundColor="#FFFFFF" configuration="AutoFlippingLabel" distance="2.0" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasLineColor="false" height="18" horizontalTextPosition="center" iconTextGap="4" modelName="free" modelPosition="anywhere" preferredPlacement="target_on_edge" ratio="0.5" textColor="#000000" upX="-1.0" upY="-6E-17" verticalTextPosition="bottom" visible="true" width="32">Gig0/3<y:PreferredPlacementDescriptor angle="0.0" angleOffsetOnRightSide="0" angleReference="relative_to_edge_flow" angleRotationOnRightSide="co" distance="-1.0" placement="target" side="on_edge" sideReference="relative_to_edge_flow" />
</y:EdgeLabel></y:PolyLineEdge>
</data>
<data key="d12">{"sid": "Monitoring", "tid": "ONT", "id": "631c97275a076fcf71f3719d90d0017b"}</data></edge></graph>
<data key="d7">
<y:Resources>
</y:Resources>
</data>
</graphml>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment