| Conditions | 2 | 
| Total Lines | 10 | 
| Code Lines | 8 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 8 | 
| CRAP Score | 2 | 
| Changes | 0 | ||
| 1 | """Module with identifier types for Links and Interfaces"""  | 
            ||
| 21 | 1 | def __lt__(self, other):  | 
            |
| 22 | # Ensures that instances are sortable in a way that maintains backwards  | 
            ||
| 23 | # compatibility when creating instances of LinkID  | 
            ||
| 24 | 1 | dpid_a = self.switch  | 
            |
| 25 | 1 | port_a = self.port  | 
            |
| 26 | 1 | dpid_b = other.switch  | 
            |
| 27 | 1 | port_b = other.port  | 
            |
| 28 | 1 | if dpid_a < dpid_b:  | 
            |
| 29 | 1 | return True  | 
            |
| 30 | 1 | return dpid_a == dpid_b and port_a < port_b  | 
            |
| 31 | |||
| 50 |