@@ -414,7 +414,7 @@ func (ac *APIController) EndpointGetOper(endpoint *contivModel.EndpointInspect)
414
414
ep := epCfg .(* mastercfg.CfgEndpointState )
415
415
if strings .Contains (ep .EndpointID , endpoint .Oper .Key ) ||
416
416
strings .Contains (ep .ContainerID , endpoint .Oper .Key ) ||
417
- strings .Contains (ep .ContainerName , endpoint .Oper .Key ) {
417
+ strings .Contains (ep .EPCommonName , endpoint .Oper .Key ) {
418
418
419
419
endpoint .Oper .Network = ep .NetID
420
420
endpoint .Oper .EndpointID = ep .EndpointID
@@ -428,7 +428,7 @@ func (ac *APIController) EndpointGetOper(endpoint *contivModel.EndpointInspect)
428
428
endpoint .Oper .VtepIP = ep .VtepIP
429
429
endpoint .Oper .Labels = fmt .Sprintf ("%s" , ep .Labels )
430
430
endpoint .Oper .ContainerID = ep .ContainerID
431
- endpoint .Oper .ContainerName = ep .ContainerName
431
+ endpoint .Oper .ContainerName = ep .EPCommonName
432
432
433
433
return nil
434
434
}
@@ -852,7 +852,7 @@ func (ac *APIController) EndpointGroupGetOper(endpointGroup *contivModel.Endpoin
852
852
epOper .VtepIP = ep .VtepIP
853
853
epOper .Labels = fmt .Sprintf ("%s" , ep .Labels )
854
854
epOper .ContainerID = ep .ContainerID
855
- epOper .ContainerName = ep .ContainerName
855
+ epOper .ContainerName = ep .EPCommonName
856
856
endpointGroup .Oper .Endpoints = append (endpointGroup .Oper .Endpoints , epOper )
857
857
}
858
858
}
@@ -1021,7 +1021,7 @@ func (ac *APIController) NetworkGetOper(network *contivModel.NetworkInspect) err
1021
1021
epOper .VtepIP = ep .VtepIP
1022
1022
epOper .Labels = fmt .Sprintf ("%s" , ep .Labels )
1023
1023
epOper .ContainerID = ep .ContainerID
1024
- epOper .ContainerName = ep .ContainerName
1024
+ epOper .ContainerName = ep .EPCommonName
1025
1025
network .Oper .Endpoints = append (network .Oper .Endpoints , epOper )
1026
1026
}
1027
1027
}
@@ -1254,7 +1254,7 @@ func (ac *APIController) PolicyGetOper(policy *contivModel.PolicyInspect) error
1254
1254
epOper .VtepIP = ep .VtepIP
1255
1255
epOper .Labels = fmt .Sprintf ("%s" , ep .Labels )
1256
1256
epOper .ContainerID = ep .ContainerID
1257
- epOper .ContainerName = ep .ContainerName
1257
+ epOper .ContainerName = ep .EPCommonName
1258
1258
policy .Oper .Endpoints = append (policy .Oper .Endpoints , epOper )
1259
1259
}
1260
1260
}
@@ -1597,7 +1597,7 @@ func getTenantNetworks(tenant *contivModel.TenantInspect) error {
1597
1597
epOper .VtepIP = ep .VtepIP
1598
1598
epOper .Labels = fmt .Sprintf ("%s" , ep .Labels )
1599
1599
epOper .ContainerID = ep .ContainerID
1600
- epOper .ContainerName = ep .ContainerName
1600
+ epOper .ContainerName = ep .EPCommonName
1601
1601
netOper .Endpoints = append (netOper .Endpoints , epOper )
1602
1602
}
1603
1603
}
@@ -1660,7 +1660,7 @@ func getTenantEPGs(tenant *contivModel.TenantInspect) error {
1660
1660
epOper .VtepIP = ep .VtepIP
1661
1661
epOper .Labels = fmt .Sprintf ("%s" , ep .Labels )
1662
1662
epOper .ContainerID = ep .ContainerID
1663
- epOper .ContainerName = ep .ContainerName
1663
+ epOper .ContainerName = ep .EPCommonName
1664
1664
epgOper .Endpoints = append (epgOper .Endpoints , epOper )
1665
1665
}
1666
1666
}
@@ -2081,7 +2081,7 @@ func (ac *APIController) ServiceLBGetOper(serviceLB *contivModel.ServiceLBInspec
2081
2081
epOper .VtepIP = epCfg .VtepIP
2082
2082
epOper .Labels = fmt .Sprintf ("%s" , epCfg .Labels )
2083
2083
epOper .ContainerID = epCfg .ContainerID
2084
- epOper .ContainerName = epCfg .ContainerName
2084
+ epOper .ContainerName = epCfg .EPCommonName
2085
2085
serviceLB .Oper .Providers = append (serviceLB .Oper .Providers , epOper )
2086
2086
count ++
2087
2087
epCfg = nil
0 commit comments