def get_all_switch_ips(self):
        """Using reserved switch binding get all switch ips."""

        switch_connections = []
        try:
            bindings = nxos_db.get_reserved_switch_binding()
        except excep.NexusPortBindingNotFound:
            LOG.error("No switch bindings in the port data base")
            bindings = []
        for switch in bindings:
            switch_connections.append(switch.switch_ip)

        return switch_connections
def get_all_switch_ips ( self ) : switch_connections = [ ] try : bindings = nxos_db . get_reserved_switch_binding ( ) except excep . NexusPortBindingNotFound : LOG . error ( "No switch bindings in the port data base" ) bindings = [ ] for switch in bindings : switch_connections . append ( switch . switch_ip ) return switch_connections
Using reserved switch binding get all switch ips.