Skip to content

Commit

Permalink
Use netmagis id for VLANs
Browse files Browse the repository at this point in the history
  • Loading branch information
moobyfr committed Apr 20, 2016
1 parent e41a484 commit 29b6708
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/netmagis-looklarge.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
naddr = sys.argv[1]
nomreseau = sys.argv[2]
# example
# nomreseau = "130.79.80.0/23 2001:660:4703:2001::/64 (IUT Sud)"
# nomreseau = 50 (refer to sourcecode from netmagis listing)

data = {'action': 'add-multi',
'naddr': naddr,
Expand Down
2 changes: 1 addition & 1 deletion scripts/netmagisclient/netmagisclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def looklarge(self, data):
self.br.open(uri)
self.br.select_form(None, None, 1)
self.br["naddr"] = data["naddr"]
self.br.set_value_by_label([data["plage"]], name='plage')
self.br["plage"] = [data["plage"]]
r = self.br.submit()
returnlooklarge = r.read()
if 'Aucun bloc' in returnlooklarge:
Expand Down

0 comments on commit 29b6708

Please sign in to comment.