On 5 May 2025, at 10:46, Roi Dayan wrote:

> From: Dima Chumak <[email protected]>
>
> The 'ovs/route/show' command now supports machine-readable JSON output
> in addition to the plain-text output for humans.
> Align the keys to match ip route output.
>
> An example json output would be:
>
>   ovs-appctl --format json --pretty ovs/route/show
>   [
>     {
>       "dst": "::1",
>       "local": false,
>       "nexthops": [
>         {
>           "dev": "lo"}],
>       "prefix": 128,
>       "prefsrc": "::1",
>       "priority": 128,
>       "user": false},
>     {
>       "dst": "10.237.157.103",
>       "local": true,
>       "nexthops": [
>         {
>           "dev": "eth1"}],
>       "prefix": 32,
>       "prefsrc": "10.237.157.103",
>       "priority": 192,
>       "user": false},
>     {
>       "dst": "fe80::42:67ff:fe28:188",
>       "local": true,
>       "nexthops": [
>         {
>           "dev": "docker0"}],
>       "prefix": 128,
>       "prefsrc": "fe80::42:67ff:fe28:188",
>       "priority": 192,
>       "user": false},
>     {
>       "dst": "0.0.0.0",
>       "local": false,
>       "nexthops": [
>         {
>           "dev": "eth0",
>           "gateway": "192.168.121.1"}],
>       "prefix": 0,
>       "prefsrc": "192.168.121.203",
>       "priority": 96,
>       "user": false}]
>
> Signed-off-by: Dima Chumak <[email protected]>
> Reviewed-by: Roi Dayan <[email protected]>

Thanks for the patch, Dima and Roi. I’ve applied it to main with the discussed 
addition, and also added a NEWS entry.

Cheers,

Eelco

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to