@@ -93,7 +93,7 @@ func TestReconcileNCStatePrimaryIPChangeShouldFail(t *testing.T) {
9393 }
9494
9595 // now try to reconcile the state where the NC primary IP has changed
96- resp := svc .ReconcileIPAMState (ncReqs , map [string ]cns.PodInfo {}, & v1alpha.NodeNetworkConfig {})
96+ resp := svc .ReconcileIPAMStateForSwift (ncReqs , map [string ]cns.PodInfo {}, & v1alpha.NodeNetworkConfig {})
9797
9898 assert .Equal (t , types .PrimaryCANotSame , resp )
9999}
@@ -140,7 +140,7 @@ func TestReconcileNCStateGatewayChange(t *testing.T) {
140140 }
141141
142142 // now try to reconcile the state where the NC gateway has changed
143- resp := svc .ReconcileIPAMState (ncReqs , map [string ]cns.PodInfo {}, & v1alpha.NodeNetworkConfig {})
143+ resp := svc .ReconcileIPAMStateForSwift (ncReqs , map [string ]cns.PodInfo {}, & v1alpha.NodeNetworkConfig {})
144144
145145 assert .Equal (t , types .Success , resp )
146146 // assert the new state reflects the gateway update
@@ -337,7 +337,7 @@ func TestReconcileNCWithEmptyState(t *testing.T) {
337337
338338 expectedNcCount := len (svc .state .ContainerStatus )
339339 expectedAssignedPods := make (map [string ]cns.PodInfo )
340- returnCode := svc .ReconcileIPAMState (nil , expectedAssignedPods , & v1alpha.NodeNetworkConfig {
340+ returnCode := svc .ReconcileIPAMStateForSwift (nil , expectedAssignedPods , & v1alpha.NodeNetworkConfig {
341341 Status : v1alpha.NodeNetworkConfigStatus {
342342 Scaler : v1alpha.Scaler {
343343 BatchSize : batchSize ,
@@ -387,7 +387,7 @@ func TestReconcileNCWithEmptyStateAndPendingRelease(t *testing.T) {
387387 return pendingIPs
388388 }()
389389 req := generateNetworkContainerRequest (secondaryIPConfigs , "reconcileNc1" , "-1" )
390- returnCode := svc .ReconcileIPAMState ([]* cns.CreateNetworkContainerRequest {req }, expectedAssignedPods , & v1alpha.NodeNetworkConfig {
390+ returnCode := svc .ReconcileIPAMStateForSwift ([]* cns.CreateNetworkContainerRequest {req }, expectedAssignedPods , & v1alpha.NodeNetworkConfig {
391391 Spec : v1alpha.NodeNetworkConfigSpec {
392392 IPsNotInUse : pending ,
393393 },
@@ -434,7 +434,7 @@ func TestReconcileNCWithExistingStateAndPendingRelease(t *testing.T) {
434434 req := generateNetworkContainerRequest (secondaryIPConfigs , "reconcileNc1" , "-1" )
435435
436436 expectedNcCount := len (svc .state .ContainerStatus )
437- returnCode := svc .ReconcileIPAMState ([]* cns.CreateNetworkContainerRequest {req }, expectedAssignedPods , & v1alpha.NodeNetworkConfig {
437+ returnCode := svc .ReconcileIPAMStateForSwift ([]* cns.CreateNetworkContainerRequest {req }, expectedAssignedPods , & v1alpha.NodeNetworkConfig {
438438 Spec : v1alpha.NodeNetworkConfigSpec {
439439 IPsNotInUse : maps .Keys (pendingIPIDs ),
440440 },
@@ -471,7 +471,7 @@ func TestReconcileNCWithExistingState(t *testing.T) {
471471 }
472472
473473 expectedNcCount := len (svc .state .ContainerStatus )
474- returnCode := svc .ReconcileIPAMState ([]* cns.CreateNetworkContainerRequest {req }, expectedAssignedPods , & v1alpha.NodeNetworkConfig {
474+ returnCode := svc .ReconcileIPAMStateForSwift ([]* cns.CreateNetworkContainerRequest {req }, expectedAssignedPods , & v1alpha.NodeNetworkConfig {
475475 Status : v1alpha.NodeNetworkConfigStatus {
476476 Scaler : v1alpha.Scaler {
477477 BatchSize : batchSize ,
@@ -522,7 +522,7 @@ func TestReconcileCNSIPAMWithDualStackPods(t *testing.T) {
522522
523523 ncReqs := []* cns.CreateNetworkContainerRequest {ipv4NC , ipv6NC }
524524
525- returnCode := svc .ReconcileIPAMState (ncReqs , podByIP , & v1alpha.NodeNetworkConfig {
525+ returnCode := svc .ReconcileIPAMStateForSwift (ncReqs , podByIP , & v1alpha.NodeNetworkConfig {
526526 Status : v1alpha.NodeNetworkConfigStatus {
527527 Scaler : v1alpha.Scaler {
528528 BatchSize : batchSize ,
@@ -570,7 +570,7 @@ func TestReconcileCNSIPAMWithMultipleIPsPerFamilyPerPod(t *testing.T) {
570570
571571 ncReqs := []* cns.CreateNetworkContainerRequest {ipv4NC , ipv6NC }
572572
573- returnCode := svc .ReconcileIPAMState (ncReqs , podByIP , & v1alpha.NodeNetworkConfig {
573+ returnCode := svc .ReconcileIPAMStateForSwift (ncReqs , podByIP , & v1alpha.NodeNetworkConfig {
574574 Status : v1alpha.NodeNetworkConfigStatus {
575575 Scaler : v1alpha.Scaler {
576576 BatchSize : batchSize ,
@@ -697,7 +697,7 @@ func TestReconcileNCWithExistingStateFromInterfaceID(t *testing.T) {
697697 }
698698
699699 expectedNcCount := len (svc .state .ContainerStatus )
700- returnCode := svc .ReconcileIPAMState ([]* cns.CreateNetworkContainerRequest {req }, expectedAssignedPods , & v1alpha.NodeNetworkConfig {
700+ returnCode := svc .ReconcileIPAMStateForSwift ([]* cns.CreateNetworkContainerRequest {req }, expectedAssignedPods , & v1alpha.NodeNetworkConfig {
701701 Status : v1alpha.NodeNetworkConfigStatus {
702702 Scaler : v1alpha.Scaler {
703703 BatchSize : batchSize ,
@@ -742,7 +742,7 @@ func TestReconcileCNSIPAMWithKubePodInfoProvider(t *testing.T) {
742742 expectedAssignedPods ["192.168.0.1" ] = cns .NewPodInfo ("" , "" , "systempod" , "kube-system" )
743743
744744 expectedNcCount := len (svc .state .ContainerStatus )
745- returnCode := svc .ReconcileIPAMState ([]* cns.CreateNetworkContainerRequest {req }, expectedAssignedPods , & v1alpha.NodeNetworkConfig {
745+ returnCode := svc .ReconcileIPAMStateForSwift ([]* cns.CreateNetworkContainerRequest {req }, expectedAssignedPods , & v1alpha.NodeNetworkConfig {
746746 Status : v1alpha.NodeNetworkConfigStatus {
747747 Scaler : v1alpha.Scaler {
748748 BatchSize : batchSize ,
0 commit comments