@@ -771,7 +771,7 @@ func checkServiceCreate(t *testing.T, tenant, network, serviceName string, port
771
771
772
772
serviceLB := & client.ServiceLB {
773
773
TenantName : tenant ,
774
- Network : network ,
774
+ NetworkName : network ,
775
775
ServiceName : serviceName ,
776
776
}
777
777
if preferredIP != "" {
@@ -790,12 +790,12 @@ func checkServiceCreate(t *testing.T, tenant, network, serviceName string, port
790
790
791
791
func verifyServiceCreate (t * testing.T , tenant , network , serviceName string , port []string , label []string ,
792
792
preferredIP string ) {
793
- service , err := contivClient .ServiceLBGet (serviceName , tenant )
793
+ service , err := contivClient .ServiceLBGet (tenant , serviceName )
794
794
if err != nil {
795
795
t .Fatalf ("Error retrieving the service created %s " , serviceName )
796
796
}
797
797
798
- if service .Network != network {
798
+ if service .NetworkName != network {
799
799
t .Fatalf ("Service Created does not have a valid network" )
800
800
}
801
801
if ! reflect .DeepEqual (service .Selectors , label ) || ! reflect .DeepEqual (service .Ports , port ) {
@@ -823,7 +823,7 @@ func verifyServiceCreate(t *testing.T, tenant, network, serviceName string, port
823
823
824
824
func checkServiceDelete (t * testing.T , tenant , serviceName string ) {
825
825
826
- err := contivClient .ServiceLBDelete (serviceName , tenant )
826
+ err := contivClient .ServiceLBDelete (tenant , serviceName )
827
827
if err != nil {
828
828
log .Fatalf ("Error creating Service. Err: %v" , err )
829
829
}
0 commit comments