Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Benjamin Graillot
scripts
Commits
2827316c
Commit
2827316c
authored
Dec 21, 2017
by
Gabriel Detraz
Browse files
Untagvlan aussi pour les bornes (untag vlan 3 pour unifi os)
parent
34ea40bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
gestion/gen_confs/switchs2.py
View file @
2827316c
...
...
@@ -327,6 +327,8 @@ class Port(object):
# Si la prise est particulière et que un vlan untag est spécifié, on l'utilise (imprimante et autres)
if
any
(
unicode
(
AVAILABLE_VLANS
[
vlan
][
'id'
])
==
server
.
get
(
'untagvlan'
,
[
None
])[
0
]
for
server
in
self
.
servers
):
return
V_UNTAGGED
elif
any
(
unicode
(
AVAILABLE_VLANS
[
vlan
][
'id'
])
==
borne
.
get
(
'untagvlan'
,
[
None
])[
0
]
for
borne
in
self
.
bornes
):
return
V_UNTAGGED
# Sinon, tous les VLANs sont taggués pour nos machines et pour les switches
elif
self
.
servers
or
self
.
uplink
:
return
V_TAGGED
...
...
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