Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 708f899f authored by SIMONIN Matthieu's avatar SIMONIN Matthieu
Browse files

Update readme

parent 72e60a04
No related branches found
No related tags found
No related merge requests found
......@@ -382,7 +382,7 @@ Note that only GET like requests are accepted on the ref API.
conf_file = os.path.join(os.environ.get("HOME"), ".python-grid5000.yaml")
gk = Grid5000.from_yaml(conf_file)
print(gk.sites["rennes"].storage["msimonin"].access.list())
print(gk.sites["rennes"].storage["home"].access["msimonin"].rules.list())
5.6.2 Set storage accesses (e.g for vms)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
......@@ -416,10 +416,14 @@ Note that only GET like requests are accepted on the ref API.
ip_network = [str(ip) for ip in IPNetwork(subnet)]
# create acces for all ips in the subnet
access = site.storage["msimonin"].access.create({"ipv4": ip_network,
"termination": {"job": job.uid,
access = site.storage["home"].access["msimonin"].rules.create({"ipv4": ip_network,
"termination": {
"job": job.uid,
"site": site.uid}})
# listing the accesses
print(gk.sites["rennes"].storage["home"].access["msimonin"].rules.list())
5.7 Vlan API
~~~~~~~~~~~~
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment