Code Monkey home page Code Monkey logo

Comments (19)

mikamakusa avatar mikamakusa commented on May 23, 2024

It's not implemented yet

from pyarubacloud.

blackms avatar blackms commented on May 23, 2024

Correct, this is not implemented yet. I will try to work on it next week.

from pyarubacloud.

Melius-Group avatar Melius-Group commented on May 23, 2024

Thank You so much!

from pyarubacloud.

Melius-Group avatar Melius-Group commented on May 23, 2024

HI, may I ask what about rDNS modif via API?

from pyarubacloud.

Melius-Group avatar Melius-Group commented on May 23, 2024

Hi, any Update? :)

from pyarubacloud.

blackms avatar blackms commented on May 23, 2024

I'm working on it. Stay tuned :)

from pyarubacloud.

blackms avatar blackms commented on May 23, 2024

At the moment, the method is not exposed via our public API, we are working on it. Should be ready in about 2 weeks.

from pyarubacloud.

Melius-Group avatar Melius-Group commented on May 23, 2024

Hi! Any update, for this issue?

from pyarubacloud.

blackms avatar blackms commented on May 23, 2024

This change is scheduled for September.

from pyarubacloud.

Melius-Group avatar Melius-Group commented on May 23, 2024

Hi, There is an update for this issue?

from pyarubacloud.

blackms avatar blackms commented on May 23, 2024

Hi, checkout "NewStructure" branch, ReverseDns is already there.

from pyarubacloud.

blackms avatar blackms commented on May 23, 2024

Merged in master.

from pyarubacloud.

Melius-Group avatar Melius-Group commented on May 23, 2024

Hi,

Thank you so much, but I get the following error msg:
Traceback (most recent call last):
File "rdns.py", line 1, in
from ArubaCloud.ReverseDns import ReverseDns
ImportError: No module named ReverseDns

How can I solve this?

Thank You

from pyarubacloud.

Melius-Group avatar Melius-Group commented on May 23, 2024

I solv the error problem, but I get nothing as rdns.

The file:
import argparse

from ArubaCloud.ReverseDns import ReverseDns
from ArubaCloud.PyArubaAPI import CloudInterface

if name == 'main':
parser = argparse.ArgumentParser()
parser.add_argument('-d', '--datacenter', help='Specify datacenter to login.', action='store', dest='dc')
parser.add_argument('-p', '--pattern', help='Specify pattern to search.', action='store', dest='pattern')
parser.add_argument('-u', '--username', help='Specify username.', action='store', dest='username')
parser.add_argument('-w', '--password', help='Specify password.', action='store', dest='password')
parser.add_argument('--new-rdns', action='store', dest='new_rdns')
p = parser.parse_args()

    ci = CloudInterface(dc=int(p.dc))
    rdns = ReverseDns(username=p.username, password=p.password, ws_uri=ci.wcf_baseurl)

    # get configured reverse dns
    print(rdns.get())

I use the correct DC and auth data, and the response is [ ].
rdns provisioned dc3 and dig command shows correctly.

Any idea?

from pyarubacloud.

blackms avatar blackms commented on May 23, 2024

Going to check it.

from pyarubacloud.

blackms avatar blackms commented on May 23, 2024

Solved, the Get method require the IP address to query:

    def get(self, addresses):
        """
        :type addresses: list[str]
        :param addresses: (list[str]) List of addresses to retrieve their reverse dns
        Retrieve the current configured ReverseDns entries
        :return: (list) List containing the current ReverseDns Addresses
        """
        request = self._call(GetReverseDns, IPs=addresses)
        response = request.commit()
        return response['Value']

You need to specify the ip address and the method now will return the reverse addresses associated.

from pyarubacloud.

Metzgher avatar Metzgher commented on May 23, 2024

Hello,

I've been getting the same error as Melious:

ImportError: No module named ReverseDns

Any tip on how to solve this?

from pyarubacloud.

arubalucalasagni avatar arubalucalasagni commented on May 23, 2024

We are checking, Thanks a lot

from pyarubacloud.

unigia avatar unigia commented on May 23, 2024

Thank you for your report. We have fixed the problem and now it works:

    ci = CloudInterface(dc=int(p.dc))
    ci.login(username=p.username, password=p.password, load=True)
    ci.get_servers()

    rdns = ReverseDns.ReverseDns(username=p.username, password=p.password, ws_uri=ci.wcf_baseurl)

    # get configured reverse dns
    for vm in ci.vmlist:
	print(rdns.get(addresses=[vm.ip_addr]))

with both python version 2 and 3.
If you still have problems you can reopen the issue.

from pyarubacloud.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.