In the given circuit diode D1 is forward biased and D2 is reverse biased.
The resistance of D1 is zero and that of D2 is infinite as the diodes D1 and D2 are ideal. No current flows through D2.
Thus D1 can be replaced by a resistanceless wire and D2 can be replaced by a broken wire. The equivalent circuit is shown in the figure.
The current in the circuit is I=4Ω+3Ω12V =7Ω12V =1.71A