summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJeremiah Millay <jmillay@fastly.com>2021-10-08 16:00:14 -0400
committerJeremiah Millay <jmillay@fastly.com>2021-10-08 16:00:14 -0400
commit8072c4488fef126a403f004d2c7d45dabf3597f4 (patch)
tree2735910fc48b61825a8bcb24001a7401e4d262df
parent91b91278600dbbfcad34a2b6131b8861bc517a6c (diff)
Return MpGracefulRestart.State in ListPeer() api call
-rw-r--r--internal/pkg/config/util.go7
1 files changed, 7 insertions, 0 deletions
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,
+ },
}
}