Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
scc-net
netvs
netvs-core
Commits
e45a8815
Commit
e45a8815
authored
Oct 15, 2021
by
janis.streib
🦉
Browse files
UPD: cutout useless vlan object
parent
ab8027dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
middleware/net_suite/modules/macfinder/views.py
View file @
e45a8815
...
...
@@ -19,7 +19,7 @@ class MacFinderJob(DBObject):
self
.
status
=
status
self
.
mac
=
format_mac
(
mac
)
self
.
vendor
=
OUI_DB
.
get
(
self
.
mac
[:
8
],
None
)
if
vendor
is
None
else
vendor
self
.
vlan
=
vlan
if
type
(
vlan
)
==
VLAN
else
VLAN
(
**
vlan
)
self
.
vlan
=
vlan
.
id
if
type
(
vlan
)
==
VLAN
else
vlan
self
.
bcd
=
bcd
self
.
started
=
started
if
started
is
not
None
else
datetime
.
datetime
.
now
()
...
...
Write
Preview
Markdown
is supported
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