def run_per_switch_cmds(self, switch_cmds):
        """Applies cmds to appropriate switches

        This takes in a switch->cmds mapping and runs only the set of cmds
        specified for a switch on that switch. This helper is used for
        applying/removing ACLs to/from interfaces as this config will vary
        from switch to switch.
        """
        for switch_ip, cmds in switch_cmds.items():
            switch = self._switches.get(switch_ip)
            self.run_openstack_sg_cmds(cmds, switch)
def run_per_switch_cmds ( self , switch_cmds ) : for switch_ip , cmds in switch_cmds . items ( ) : switch = self . _switches . get ( switch_ip ) self . run_openstack_sg_cmds ( cmds , switch )
Applies cmds to appropriate switches

        This takes in a switch->cmds mapping and runs only the set of cmds
        specified for a switch on that switch. This helper is used for
        applying/removing ACLs to/from interfaces as this config will vary
        from switch to switch.