1 Reply Latest reply on Aug 15, 2017 3:30 PM by jcauburn

    node ipaddress update via python / swis


      Hello, I'm trying to change a nodes IPAddress via some python code via SWIS, but get error 400 saying the property is not navigable does this mean it CANT be updated or that I'm calling it incorrectly ?


      I'm doing this update after getting the URI, is there a different method to update the ipaddress ?


      swis.update(uri + '/IPAddress',IPAddress='')


      Traceback (most recent call last):

        File "C:\Users\073563\AppData\Local\Programs\Python\Python36-32\ipaddresschange.py", line 44, in <module>


        File "C:\Users\073563\AppData\Local\Programs\Python\Python36-32\ipaddresschange.py", line 37, in main

          swis.update(uri + '/IPAddress',IPAddress='')

        File "C:\Users\073563\AppData\Local\Programs\Python\Python36-32\lib\site-packages\orionsdk\swisclient.py", line 40, in update

          self._req("POST", uri, properties)

        File "C:\Users\073563\AppData\Local\Programs\Python\Python36-32\lib\site-packages\orionsdk\swisclient.py", line 59, in _req


        File "C:\Users\073563\AppData\Local\Programs\Python\Python36-32\lib\site-packages\requests\models.py", line 909, in raise_for_status

          raise HTTPError(http_error_msg, response=self)

      requests.exceptions.HTTPError: 400 Client Error: Property 'IPAddress' is not navigable.

      Parameter name: uri for url: