chore: refactor are_unis_active(self, switches)
and get_interface_from_switch(uni, switches)
#579
Labels
are_unis_active(self, switches)
and get_interface_from_switch(uni, switches)
#579
Refactor are_unis_active(self, switches: dict), this shouldn't take switches,
LinkProtection
class already has access to it viaself._controller.switches
.UNI
interfaces that is get from controller should be get fromuni.interface
sinceUNI
s have been instantiated in this class, it can access directly the existing ref no need to get the interface again viaswitches
ref. As a consequence get_interface_from_switch can also be removed.The text was updated successfully, but these errors were encountered: