def attach_primary_device(self): # attach a primary device, with no line_port suffix d = Device(logging_level=self.logging_level) d.broadsoftinstance = self.broadsoftinstance d.logging_level = self.logging_level d.is_primary = True d.did = self.did d.description = self.attach_default_devices__build_description() d.type = 'Generic SIP Phone' d.derive_line_port() d.implicit_overwrite = False d.skip_if_exists = True self.devices.append(d)
def attach_sca(self, index=None): d = Device(logging_level=self.logging_level) d.index = self.derive_sca_index(index=index) d.broadsoftinstance = self.broadsoftinstance d.logging_level = self.logging_level d.is_primary = False d.did = self.did d.description = self.attach_default_devices__build_description() d.type = 'Generic SIP Phone' d.derive_line_port() d.implicit_overwrite = False d.skip_if_exists = True self.devices.append(d)