Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Aruba-WLAN
Aruba-WLAN Python Scripts
Commits
ee5884cb
Commit
ee5884cb
authored
Aug 23, 2021
by
Alexander Detsch
🐘
Browse files
fix dbhandler-import
parent
25a7675c
Changes
1
Hide whitespace changes
Inline
Side-by-side
arubawlan-python-scripts/add_aruba_ap.py
View file @
ee5884cb
...
...
@@ -3,7 +3,7 @@ import argparse
import
sys
import
getpass
import
csv
from
dbhandler
import
AdminDBHandler
from
dbhandler
.dbhandler
import
AdminDBHandler
from
os.path
import
isfile
from
netaddr
import
EUI
,
mac_unix_expanded
import
requests
...
...
@@ -51,7 +51,7 @@ class ApData:
return
f
"Haus
{
match
.
group
(
1
).
upper
()
}
"
def
fetch_ip_from_admindb
(
self
,
credentials
):
from
dbhandler
import
AdminDBHandler
from
dbhandler
.dbhandler
import
AdminDBHandler
db
=
AdminDBHandler
()
if
not
db
.
connect
(
credentials
.
host
,
credentials
.
port
,
credentials
.
dbname
,
credentials
.
username
,
credentials
.
password
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment