ovnkube-plot

command module
v0.0.0-...-a444403 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 17, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

README

A lot of the code is heavily borrowed from the ovndbchecker from https://github.com/ovn-org/ovn-kubernetes

Build Instructions

make

Usage Instructions

NAME:
   ovnkube-plot - plot ovnkube network in a human readable way

USAGE:
   ovnkube-plot [global options]

VERSION:
   0.0.1

COMMANDS:
     help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   OVN KUBEPLOT OPTIONS
   --format value  The output format ('compact' or 'detailed')
   --filter value  Show only matching nodes
   
   OVN NORTHBOUND DB OPTIONS
   --nb-address value              IP address and port of the OVN northbound API (eg, ssl:1.2.3.4:6641,ssl:1.2.3.5:6642).  Leave empty to use a local unix socket.
   --nb-client-privkey value       Private key that the client should use for talking to the OVN database (default when ssl address is used: /etc/openvswitch/ovnnb-privkey.pem).  Default value for this setting is empty which defaults to use local unix socket.
   --nb-client-cert value          Client certificate that the client should use for talking to the OVN database (default when ssl address is used: /etc/openvswitch/ovnnb-cert.pem). Default value for this setting is empty which defaults to use local unix socket.
   --nb-client-cacert value        CA certificate that the client should use for talking to the OVN database (default when ssl address is used: /etc/openvswitch/ovnnb-ca.cert).Default value for this setting is empty which defaults to use local unix socket.
   --nb-cert-common-name value     Common Name of the certificate used for TLS server certificate verification. In cases where the certificate doesn't have any SAN Extensions, this parameter should match the DNS(hostname) of the server. In case the certificate has a SAN extension, this parameter should match one of the SAN fields.
   --nb-raft-election-timer value  The desired northbound database election timer. (default: 0)

Example:

./ovnkube-plot  --nb-address=tcp://172.18.0.3:6641,tcp://172.18.0.2:6641,tcp://172.18.0.4:6641 --sb-address=tcp://172.18.0.3:6642,tcp://172.18.0.2:6642,tcp://172.18.0.4:6642 > plot.txt
cat dot.txt | dot -Tpdf > plot.pdf
evince plot.pdf

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL