nwdiag has been created by Takeshi Komiya and allows to quickly draw network diagrams. So we thank him for his creation! Since the syntax is clear and simple, this has been integrated within PlantUML. We reuse here the examples that Takeshi has documented.
Define a network
Define some elements or servers on a network
Define group inside network definitions
Define group outside of network definitions
Define several groups on same network
Example with 2 group
Example with 3 groups
NetworkFor network or network's component, you can add or change:
GroupFor a group, you can add or change:
You can use all sprites (icons) from the Standard Library or any other library. Use the notation
You can also use the icons from OpenIconic in network or node descriptions. Use the notation
You can use same nodes on different networks (more than two networks); nwdiag use in this case 'jump line' over networks.
Peer networks are simple connections between two nodes, for which we don't use a horizontal "busbar" network
Group on first
Group on second
FIXMEWhy the line on proxy for 'db'? ('db' must be only on 'default network') [See example without group]
Group on third
FIXME[Ref. Issue#408 and QA-12655]
Not totally fixed
[Ref. QA-11303 and Common commands]
With shadow (by default)
You can change the width of the networks, especially in order to have the same full width for only some or all networks. Here are some examples, with all the possibilities:
You can define other internal networks (TCP/IP, USB, SERIAL,...).
Without style (by default)
With styleYou can use style to change rendering of elements.