X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=lib%2Fagent%2Fapiv1-config.go;h=b24dc2198f8400b0e343c43417d7561a25490400;hb=38e0baedab9da4516cdc97b526392cbc2c7da67e;hp=54d3525194b84681dc6adf3515946569cb0422e0;hpb=bb9af073f62551fd295a9cf236b00e6376ead1ae;p=src%2Fxds%2Fxds-agent.git diff --git a/lib/agent/apiv1-config.go b/lib/agent/apiv1-config.go index 54d3525..b24dc21 100644 --- a/lib/agent/apiv1-config.go +++ b/lib/agent/apiv1-config.go @@ -82,6 +82,14 @@ func (s *APIService) setConfig(c *gin.Context) { } } + // Update XdsServer config + for _, svrCfg := range cfgArg.Servers { + if err := s.UpdateXdsServer(svrCfg); err != nil { + // willingly ignore error + // s.Log.Debugf("Error while updating XDS Server config: %v", err) + } + } + c.JSON(http.StatusOK, s._getConfig()) }