a_frame/utils/action_providers/RestAction.py
def __connect_to_ruckus(self):
        """
        connects to Ruckus REST server to get a Cookie with the specified user and password

        :return: boolean if successful

        """

        _auth_json = """
           {
            "username" : "%s",
            "password" : "%s"
            }
            """ % (self.username, self.password)

        full_url = self.protocol + "://" + self.host + self._ruckus_auth_path
        print(full_url)
        request = urllib2.Request(full_url)

        print("Ruckus Rest Cookie using username/password: %s %s" % (self.username, self.password))
        request.add_header("Content-Type", "application/json")

        result = self.__perform_post(request, _auth_json)

        auth_token_string = result.info().getheader('Set-cookie')
        self._auth_token = auth_token_string.split(';')[0]

        return True

        connects to Ruckus REST server to get a Cookie with the specified user and password

        :return: boolean if successful

        
connects to Ruckus REST server to get a Cookie with the specified user and password
connects to Ruckus REST server to get a Cookie with the specified user and password
def __connect_to_ruckus(self):
        _auth_json = """
           {
            "username" : "%s",
            "password" : "%s"
            }
            """ % (self.username, self.password)
        full_url = self.protocol + "://" + self.host + self._ruckus_auth_path
        print(full_url)
        request = urllib2.Request(full_url)
        print("Ruckus Rest Cookie using username/password: %s %s" % (self.username, self.password))
        request.add_header("Content-Type", "application/json")
        result = self.__perform_post(request, _auth_json)
        auth_token_string = result.info().getheader('Set-cookie')
        self._auth_token = auth_token_string.split(';')[0]
        return True
def __connect_to_ruckus ( self ) : _auth_json = """
           {
            "username" : "%s",
            "password" : "%s"
            }
            """ % ( self . username , self . password ) full_url = self . protocol + "://" + self . host + self . _ruckus_auth_path print ( full_url ) request = urllib2 . Request ( full_url ) print ( "Ruckus Rest Cookie using username/password: %s %s" % ( self . username , self . password ) ) request . add_header ( "Content-Type" , "application/json" ) result = self . __perform_post ( request , _auth_json ) auth_token_string = result . info ( ) . getheader ( 'Set-cookie' ) self . _auth_token = auth_token_string . split ( ';' ) [ 0 ] return True
connects to Ruckus REST server to get a Cookie with the specified user and password
connects to Ruckus REST server to get a Cookie with the specified user and password
"""
        connects to Ruckus REST server to get a Cookie with the specified user and password

        :return: boolean if successful

        """
boolean if successful
boolean if successful
self