@@ -36,11 +36,8 @@ func extContractsGrpDeregister(epg *contivModel.EndpointGroup,
36
36
}
37
37
38
38
modeldb .RemoveLinkSet (& contractsGrp .LinkSets .EndpointGroups , epg )
39
- if contractType == "provided" {
40
- modeldb .RemoveLinkSet (& epg .LinkSets .ProvExtContractsGrps , contractsGrp )
41
- } else if contractType == "consumed" {
42
- modeldb .RemoveLinkSet (& epg .LinkSets .ConsExtContractsGrps , contractsGrp )
43
- }
39
+ modeldb .RemoveLinkSet (& epg .LinkSets .ExtContractsGrps , contractsGrp )
40
+
44
41
// Links broken, update the contracts group object.
45
42
err := contractsGrp .Write ()
46
43
if err != nil {
@@ -70,11 +67,7 @@ func extContractsGrpValidateAndRegister(epg *contivModel.EndpointGroup,
70
67
71
68
// Establish the necessary links.
72
69
modeldb .AddLinkSet (& contractsGrp .LinkSets .EndpointGroups , epg )
73
- if contractType == "provided" {
74
- modeldb .AddLinkSet (& epg .LinkSets .ProvExtContractsGrps , contractsGrp )
75
- } else if contractType == "consumed" {
76
- modeldb .AddLinkSet (& epg .LinkSets .ConsExtContractsGrps , contractsGrp )
77
- }
70
+ modeldb .AddLinkSet (& epg .LinkSets .ExtContractsGrps , contractsGrp )
78
71
79
72
// Links made, write the policy set object.
80
73
err := contractsGrp .Write ()
0 commit comments