Conditions | 1 |
Total Lines | 10 |
Code Lines | 2 |
Lines | 0 |
Ratio | 0 % |
Tests | 2 |
CRAP Score | 1 |
Changes | 0 |
1 | """Module to create a singleton class to track all switches. After being |
||
30 | 1 | def get_switch(self, dpid): |
|
31 | """Query the self.switches |
||
32 | Args: |
||
33 | dpid: datapath id 'str' |
||
34 | |||
35 | Returns: |
||
36 | a kytos.core.switch.Switch() object |
||
37 | False if not found |
||
38 | """ |
||
39 | 1 | return self._switches.get(dpid, False) |
|
40 | |||
44 |