blob: 4e670c8aa9a4fed6abc92ea2a1eb022ed37614d0 [file] [log] [blame]
def save(self, *args, **kwargs):
subCount = sum([1 for e in [self.subscriber_service, self.subscriber_service_instance, self.subscriber_network] if e is not None])
if (subCount > 1):
raise XOSConflictingField(
"Only one of subscriber_service, subscriber_service_instance, subscriber_network should be set")
super(ServiceInstanceLink, self).save(*args, **kwargs)