Conditions | 4 |
Total Lines | 10 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 4 |
Changes | 0 |
1 | """ This class helps to handle multi-home physical loops (two ports). """ |
||
41 | 1 | @property |
|
42 | 1 | def status(self) -> EntityStatus: |
|
43 | """ProxyPort status.""" |
||
44 | 1 | if ( |
|
45 | self.source.status == EntityStatus.UP |
||
46 | and self.destination |
||
47 | and self.destination.status == EntityStatus.UP |
||
48 | ): |
||
49 | 1 | return EntityStatus.UP |
|
50 | 1 | return EntityStatus.DOWN |
|
51 | |||
55 |