python-libmaas
python-libmaas copied to clipboard
Unofficial python client library for MAAS
Hi, Is it possible to compose a pod with multiple interfaces? The compose method in pods module contains the interfaces parameter but I have only been able to compose an...
Is there a way to delete SSHKeys with the libmaas Python library? For a client, I see methods to create/get/list ssh_keys, but not a way to delete existing ones...
Cross-posting bug: https://bugs.launchpad.net/ubuntu/+source/python-libmaas/+bug/1933492 in python3-libmaas class Subnet() does not allow setting allow_dns option. Through the cli and gui it can be configured. maas subnet update 2 allow_dns=false https://github.com/maas/maas/blob/master/src/maasserver/api/subnets.py#L100-L101 (side note:...
Hi We are using this method quite a lot to remove ssh keys from MAAS. Meaning we are providing our users with the ability to work with a certain machine(s)...
We're using this code for adding vlan and subnet to maas (it's already enabled on maas machine interfaces) ``` prefix = "192.168.130.0/24" ip_network = ipaddress.ip_network(prefix, strict = False) vlan =...
The nodes endpoint is completely missing in facade.py Added the nodes.read (thus client.nodes.read(hostnames=[]) This allows for querying maas by hostname QUICKLY which gets you the system_id which you can then...
``` maas/client/viscera/__init__.py", line 748, in __set__ raise AttributeError("%s is read-only" % self.name) AttributeError: cidr is read-only ``` The MAAS UI allows the CIDR field to be changed, and the [MAAS...
When entering an URL that might not be the right, the error that is thrown is really not helpful. This is what it looks like.... ``` (python-libmaas) erik@dcv-engineering:~/allcode/python-libmaas$ maas login...
https://github.com/maas/python-libmaas/blob/1f6378049e8f3cc8a43941ae0e4a02b5f8afc3c7/doc/index.md Failure.... ``` erik@node:~/allcode/python-libmaas$ make if [ -x /usr/bin/snap ]; then sudo snap install --classic snapcraft; fi [sudo] password for erik: ``` This code breaks the make since it states...
Hello, I'm new with maas and python and I want to get json result after an allocate or a deploy : ``` import json from maas.client import connect client =...