def _render_mail(self, rebuild, success, canceled):
        subject_template = 'Image %(image)s; Status %(endstate)s; Submitted by %(user)s'
        body_template = '\n'.join([
            'Image: %(image)s',
            'Status: %(endstate)s',
            'Submitted by: %(user)s',
            'Logs: %(logs)s',
        ])

        endstate = None
        if canceled:
            endstate = 'canceled'
        else:
            endstate = 'successful' if success else 'failed'
        url = None
        if self.url and self.workflow.openshift_build_selflink:
            url = urljoin(self.url, self.workflow.openshift_build_selflink + '/log')

        formatting_dict = {
            'image': self.workflow.image,
            'endstate': endstate,
            'user': '<autorebuild>' if rebuild else self.submitter,
            'logs': url
        }
        return (subject_template % formatting_dict, body_template % formatting_dict)
Makes sure flat_interface flag overrides network bridge_interface.
dataset/ETHPy150Open projectatomic/atomic-reactor/atomic_reactor/plugins/exit_sendmail.py/SendMailPlugin._render_mail--crossover with--dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/tests/unit/network/test_linux_net.py/LinuxNetworkTestCase.test_flat_override