Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
re2o
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nounous
re2o
Commits
ef2101e0
Commit
ef2101e0
authored
Aug 07, 2018
by
Gabriel Detraz
Committed by
root
Aug 07, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix des erreurs, et améliore la lisibilité des logs
parent
2b4680b5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
freeradius_utils/auth.py
freeradius_utils/auth.py
+1
-1
freeradius_utils/freeradius3/mods-enabled/python
freeradius_utils/freeradius3/mods-enabled/python
+1
-1
topologie/models.py
topologie/models.py
+1
-1
No files found.
freeradius_utils/auth.py
View file @
ef2101e0
...
...
@@ -348,7 +348,7 @@ def decide_vlan_and_register_switch(nas_machine, nas_type, port_number,
if
not
nas_machine
:
return
(
'?'
,
u
'Chambre inconnue'
,
u
'Nas inconnu'
,
VLAN_OK
)
sw_name
=
str
(
nas_machine
)
sw_name
=
str
(
getattr
(
nas_machine
,
'short_name'
,
str
(
nas_machine
))
)
port
=
(
Port
.
objects
.
filter
(
...
...
freeradius_utils/freeradius3/mods-enabled/python
View file @
ef2101e0
...
...
@@ -9,7 +9,7 @@
python re2o {
module = auth
python_path = /etc/freeradius/3.0:/usr/lib/python2.7
/:/usr/lib/python2.7/dist-packages/:/usr/local/lib/python2.7/site-packages/:/usr/local/lib/python2.7/dist-packages/
python_path = /etc/freeradius/3.0:/usr/lib/python2.7
:/usr/lib/python2.7/dist-packages:/usr/local/lib/python2.7/site-packages:/usr/lib/python2.7/lib-dynload:/usr/local/lib/python2.7/dist-packages
mod_instantiate = ${.module}
func_instantiate = instantiate
...
...
topologie/models.py
View file @
ef2101e0
...
...
@@ -427,7 +427,7 @@ class Port(AclMixin, RevMixin, models.Model):
:returns: the profile of self (port)"""
def
profile_or_nothing
(
profile
):
port_profile
=
PortProfile
.
objects
.
filter
(
profil
e
_default
=
profile
).
first
()
profil_default
=
profile
).
first
()
if
port_profile
:
return
port_profile
else
:
...
...
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