From 8072c4488fef126a403f004d2c7d45dabf3597f4 Mon Sep 17 00:00:00 2001 From: Jeremiah Millay Date: Fri, 8 Oct 2021 16:00:14 -0400 Subject: Return MpGracefulRestart.State in ListPeer() api call --- internal/pkg/config/util.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/internal/pkg/config/util.go b/internal/pkg/config/util.go index 00ddb2ba..966fcf15 100644 --- a/internal/pkg/config/util.go +++ b/internal/pkg/config/util.go @@ -384,6 +384,13 @@ func newMpGracefulRestartFromConfigStruct(c *MpGracefulRestart) *api.MpGracefulR Config: &api.MpGracefulRestartConfig{ Enabled: c.Config.Enabled, }, + State: &api.MpGracefulRestartState{ + Enabled: c.State.Enabled, + Received: c.State.Received, + Advertised: c.State.Advertised, + EndOfRibReceived: c.State.EndOfRibReceived, + EndOfRibSent: c.State.EndOfRibSent, + }, } } -- cgit v1.2.3