Skip to content
Snippets Groups Projects

Enable export and import of SDN configuration

Merged Ghost User requested to merge export-import-sdn-config into develop
3 files
+ 15
35
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -65,26 +65,6 @@ func (v *VenvManager) closeConnection(conn *grpc.ClientConn) {
}
}
// TestConnection checks if it can reach the controller via the api.
func (v *VenvManager) TestConnection() error {
conn, err := v.createConnection()
if err != nil {
return err
}
defer v.closeConnection(conn)
ctx := context.Background()
//Replace with health check as soon as available
coreService := corePb.NewCoreServiceClient(conn)
_, err = coreService.GetPndList(ctx, &corePb.GetPndListRequest{})
if err != nil {
return err
}
return nil
}
// CreateSDNConfigFile creates the SDN configuration file.
func (v *VenvManager) CreateSDNConfigFile() error {
sdnConfigReponse, err := v.getSDNConfigData()
Loading