OS_ROUTE_STYLE = ''
PHYNET_STYLE = ''
NAMESPACE_STYLE = ''
+ PATCH_STYLE = ''
NOT_CONNECTED_STYLE = ''
DEFAULT_FORMAT = '[ %s ] %s -- { label: "%s %s"; } [ %s ] %s'
NAMESPACE_FORMAT = '[ %s ] %s --> { label: %s %s; } [ %s ] %'
PATCH_FORMAT = '[ %s ] %s <==> { label: %s : %s; } [ %s ] %s'
VETH_FORMAT = '[ %s ] %s <--> { label: %s \| %s; } [ %s ] %s'
+ VLAN_DIST_FORMAT = '[ %s ] %s <--> { label: %s \| %s; } [ %s ] %s'
HEADER_FORMAT = ""
FOOTER_FORMAT = ""
OS_ROUTE_STYLE = '{ fill: white; border: dotted; bordercolor: black; }'
PHYNET_STYLE = '{ fill: white; border: dotted; bordercolor: green; }'
NAMESPACE_STYLE = '{ fill: green; border: none; }'
+ PATCH_STYLE = '{ fill: #ddddff; border: dotted; bordercolor: black; }'
NOT_CONNECTED_STYLE = '{ fill: #ffdddd; border: dotted; bordercolor: black; }'
DEFAULT_FORMAT = '[ %s ] %s -- { label: "%s %s"; labelcolor: #663333; } [ %s ] %s'
NAMESPACE_FORMAT = '[ %s ] %s --> { label: "%s %s"; labelcolor: #663333; } [ %s ] %s'
PATCH_FORMAT = '[ %s ] %s <==> { label: "%s : %s"; labelcolor: #333366; } [ %s ] %s'
VETH_FORMAT = '[ %s ] %s <--> { label: "%s \| %s"; labelcolor: #336633; } [ %s ] %s'
+ VLAN_DIST_FORMAT = '[ %s ] %s <--> { label: "%s \| %s"; labelcolor: #336633; } [ %s ] %s'
HEADER = ""
FOOTER = ""
NAMESPACE_FORMAT = '"%s" -> "%s" [ color="#000000", fontcolor="#663333", label = "%s %s" ]'
PATCH_FORMAT = '"%s" -> "%s" [ dir=both, arrowhead=box, arrowtail=box, color="#000000:#000000", fontcolor="#333366", label = "%s : %s" ]'
VETH_FORMAT = '"%s" -> "%s" [ dir=both, arrowhead=box, arrowtail=box, color="#000000", fontcolor="#336633", label="%s \| %s" ]'
+ VLAN_DIST_FORMAT = '"%s" -> "%s" [ dir=forward, arrowhead=none, arrowtail=inv, color="#660000", fontcolor="#336633", label="%s \| %s" ]'
# ADDNODE_STYLE = '"%s" [ fillcolor="#ffffff", style="filled,dotted" ]'
ADDNODE_STYLE = '"%s" [ %s ]'
OS_ROUTE_STYLE = "color: '#00A0B0', directional: false"
PHYNET_STYLE = "color: '#00A0B0', directional: false"
NAMESPACE_STYLE = "color: '#00A0B0', directional: true"
+ PATCH_STYLE = "color: '#DDDDFF', directional: true"
NOT_CONNECTED_STYLE = "color: '#FFDDDD', directional: true"
DEFAULT_FORMAT = "['%s', '%s', {%s, label: '%s %s'}]"
NAMESPACE_FORMAT = "['%s', '%s', {%s, label: '%s %s'}]"
PATCH_FORMAT = "['%s', '%s', {%s, label: '%s : %s'}]"
VETH_FORMAT = "['%s', '%s', {%s, label: '%s \| %s'}]"
-
+ VLAN_DIST_FORMAT = "['%s', '%s', {%s, label: '%s -> %s'}]"
+
ADDNODE_STYLE = "graph.addNodes('%s');"
ADDEDGE_START = "graph.addEdges("
ADDEDGE_END = ");"
BR_STYLE = "color: '#00A0B0', directional: false"
OS_ROUTE_STYLE = "color: '#00A0B0', directional: false"
PHYNET_STYLE = "color: '#00A0B0', directional: false"
- NAMESPACE_STYLE = "color: '#00A0B0', directional: true"
- NAMESPACE_STYLE = "color: '#FFDDDD', directional: true"
+ NAMESPACE_STYLE = "color: '#DDFFDD', directional: true"
+ PATCH_STYLE = "color: '#DDDDFF', directional: true"
+ NOT_CONNECTED_STYLE = "color: '#FFDDDD', directional: true"
DEFAULT_FORMAT = "graph.newEdge(%s, %s, {color: '#00A0B0'});"
OS_ROUTING_FORMAT = "graph.newEdge(%s, %s, {color: '#00A0B0'});"
NAMESPACE_FORMAT = "graph.newEdge(%s, %s, {color: '#00A0B0'});"
PATCH_FORMAT = "graph.newEdge(%s, %s, {color: '#00A0B0'});"
VETH_FORMAT = "graph.newEdge(%s, %s, {color: '#00A0B0'});"
+ VLAN_DIST_FORMAT = "graph.newEdge(%s, %s, {color: '#00A0B0'});"
ADDNODE_STYLE = "var %s = graph.newNode({label: '%s'});"
ADDEDGE_START = "graph.addEdges("