A minimal tool that can read the OVN Kubernetes database file and print the output in JSON format. It will not come closer to ovn-nbctl
commands but may help read the OVN-K database file and look for a specific piece of information fastly without any dependencies.
- OVN kubernetes database file called
leader_nbdb
in any sub-directory of$(pwd)
.
curl -#Lo odr $(curl -s https://api.github.com/repos/kevydotvinu/odr/releases/latest \
| jq -r '.assets | .[] | select(.name | contains("linux")) | .browser_download_url') && \
mv odr ~/.local/bin/ && chmod +x ~/.local/bin/odr && PATH=${PATH}:~/.local/bin
curl -#Lo odr $(curl -s https://api.github.com/repos/kevydotvinu/odr/releases/latest \
| jq -r '.assets | .[] | select(.name | contains("darwin")) | .browser_download_url') && \
mv odr ~/.local/bin/ && chmod +x ~/.local/bin/odr && PATH=${PATH}:~/.local/bin
odr --all
Search table
odr --search Logical_Router
odr --uuid 571bb084-d5f2-4665-927e-03ace3a6b2b6