So after doing a bit of configuration and installation:
sudo apt install -y blockdiag nwdiag apt-utils git python-pip graphviz python-blockdiag
cp -R ../pelican-plugins/liquid_tags plugins/
Doing some config:
PLUGIN_PATHS = ['plugins']
PLUGINS = ['i18n_subsites','neighbors','tag_cloud','post_revision','post_stats','liquid_tags.graphviz','liquid_tags.diag']
It was time to try it out with something that could use some structure.
{% graphviz
dot { graph block {
inet [ shape = cloud ];
inet -- wan_rtr;
network wan_198.51.100.0 {
address = "198.51.100.0/21";
group isp {
color = "#FF7777";
wan_rtr [ address = "198.51.100.1" ];
}
group outside {
color = "#777777";
bsdrouter [ address = "198.51.100.10" ];
jnprouter [ address = "198.51.100.152" ];
}
}
network lan_192.0.2 {
address = "192.0.2.0/24";
jnprouter [ address = "192.0.2.9" ];
bsdrouter [ address = "192.0.2.1" ];
filesrv0 [ address = "192.0.2.2" ];
landns01 [ address = "192.0.2.41" ];
landns02 [ address = "192.0.2.41" ];
}
} }
%}
Oh, and the ip addresses are from RFC5737: IPv4 Address Blocks Reserved for Documentation, giving us 3 /24's to use in documentation. Rather neat.
Comments
comments powered by Disqus