Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose OVN logic router name in state API #456

Merged
merged 8 commits into from
Jan 31, 2024
Prev Previous commit
Next Next commit
incusd/network/ovn: Expose LogicalRouter name
Signed-off-by: Stéphane Graber <[email protected]>
Sponsored-by: Luizalabs (https://luizalabs.com)
  • Loading branch information
stgraber committed Jan 30, 2024
commit ff05054a7e4aaf71dd757b5b3d8fbaed3220903c
5 changes: 4 additions & 1 deletion internal/server/network/driver_ovn.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,10 @@ func (n *ovn) State() (*api.NetworkState, error) {
Mtu: mtu,
State: "up",
Type: "broadcast",
OVN: &api.NetworkStateOVN{Chassis: chassis},
OVN: &api.NetworkStateOVN{
Chassis: chassis,
LogicalRouter: string(n.getRouterName()),
},
}, nil
}

Expand Down