def save_connections(self):
        
        cnxn1, created = create_or_update(
            OpenFlowConnection,
            filter_attrs=dict(
                src_iface = self.cleaned_data["local_interface"],
                dst_iface = self.cleaned_data["remote_interface"],
            ),
        )
        if not created: cnxn1 = None
        
        cnxn2, created = create_or_update(
            OpenFlowConnection,
            filter_attrs=dict(
                dst_iface = self.cleaned_data["local_interface"],
                src_iface = self.cleaned_data["remote_interface"],
            ),
        )
        if not created: cnxn2 = None
        
        return (cnxn1, cnxn2)
Test UnitStmt to_excellon()
dataset/ETHPy150Open fp7-ofelia/ocf/expedient/src/python/plugins/openflow/plugin/forms.py/OpenFlowStaticConnectionForm.save_connections--crossover with--dataset/ETHPy150Open curtacircuitos/pcb-tools/gerber/tests/test_excellon_statements.py/test_unitstmt_dump