Having (or not) same length of all the networks on a nwdiag diagram

0 votes
asked Aug 27 in Wanted features by The-Lu (7,580 points)

Hello PlantUML Team,

Ask on /11884, here is a wanted feature about nwdiag functionality:

Original demand:

"Jul 23, from this diagram:


[Code on PlantUML server]

→ I would like dmz line is also same length as internal and internal2."

Also:

  • Will be possible in order to have parameter (on/off, for example, or other...) to achieve this demand?

Thanks for yours works,
Regards,
Th.

1 Answer

0 votes
answered Aug 27 by plantuml (230,800 points)
selected Aug 28 by The-Lu
 
Best answer

Nice idea!

With last beta http://beta.plantuml.net/plantuml.jar you can have :

@startuml
nwdiag {
  network NETWORK_BASE {
   width = full
   dev_A   [address = "dev_A" ]
   dev_B [address = "dev_B" ]
  }
  network IntNET1 {

   dev_B [address = "dev_B1" ]
   dev_M [address = "dev_M1" ]

  }
  network IntNET2 {

   dev_B [address = "dev_B2" ]
   dev_M [address = "dev_M2" ]

 }
}
@enduml

Is this what you are looking for ?

commented Aug 28 by The-Lu (7,580 points)

Hello Plantuml,

Thank for the prompt answer: That is perfect.
I will initiate an according § on the alpha-doc.

(with all the last mod. it is a nice update on this part of nwdiag)

Regards,
Th.

...