plantuml doesnot create network diagram when there are more than 3 networks and few nodes share it

0 votes
asked Jul 23 in Question / help by sdevasya
Below is my code.

 I need web01 and web02 to be connected to internal2 network along with dmz and internal. Executing this code doesnot generate the required diagram(web01 and web02 are only connected  to dmz and internal in the diagram generated)

@startuml
nwdiag {
  // define group at outside network definitions
  group {
    color = "#FF7777";

    web01;
    web02;
    db01;
  }

  network dmz {
    web01;
    web02;
  }
  network internal {
    web01;
    web02;
    db01;
  }

  network internal2 {
    web01;
    web02;
    db01;
  }

}
@enduml
commented Jul 23 by Martin
I'm curious as to how you would expect this to display.  I mean, do you envisage two 'web01' boxes, or would you expect three lines coming out of the 'web01' box one of which would have to cross over a rail?

1 Answer

0 votes
answered Jul 23 by The-Lu (5,860 points)
edited Jul 23 by The-Lu
 
Best answer

Hello S. and PlantUML team,

On Plantuml, that is KO (internal2 is not good):


[Click to see on PlantUML server]

But if you go directly to the site of the nwdiag's author, that is OK, we see all the 3 networks (and the internal2 is good), [copy/paste your code without @startuml/@enduml on]:

Maybe PlantUML should update to the latest version of nwdiag...

On the same suject (nwdiag), the "peer networks" is broken (We does not observe the cloud on the PlantUML version), see the differences between:

  1. the PlantUML doc: https://plantuml.com/nwdiag#44fc6e53afc4fcef
  2. and the nwdiag doc: http://blockdiag.com/en/nwdiag/nwdiag-examples.html#peer-networks

If that can help,
Regards,
Th.

commented Jul 23 by anonymous
This is awesome. Thanks. The-Lu

Few observations:

1)What is the vertical line going up in "dmz" network

2)I would like dmz line is also same length as internal and internal2.
commented Jul 24 by The-Lu (5,860 points)

Hello A.,

1)What is the vertical line going up in "dmz" network

1) This line going up in "dmz" network seems to be the link to outside or to a router of an external network, like the Internet.

If we see all the examples on the doc. page (http://blockdiag.com/en/nwdiag/nwdiag-examples.html), all of them have it!

2)I would like dmz line is also same length as internal and internal2.

2) Perhaps you can ask a new feature directly to the author of nwdiag, on:

If that can help,
Regards,
Th.

commented Jul 24 by sdevasya
Thanks a lot for the answers
...