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
Thomas Blanc
scripts
Commits
fcda8784
Commit
fcda8784
authored
Apr 08, 2013
by
Pierre-Elliott Bécue
Browse files
[config/nolslib/mac_prises] Corrections
parent
4afa4dc0
Changes
4
Hide whitespace changes
Inline
Side-by-side
gestion/config/config.py
View file @
fcda8784
...
...
@@ -169,7 +169,9 @@ NETs_regexp = { 'all' : '^138\.231\.1(3[6789]|4[0123456789]|5[01])\.\d+$' }
# ci-dessus...
rid
=
{
# Rid pour les machines fixes
'fil'
:
(
256
,
2047
),
'adherents'
:
(
256
,
2047
),
# Rid pour les machines filaire ipv4
'fil'
:
(
0
,
2047
),
# Rid pour les machines wifi
'wifi'
:
(
2048
,
4095
),
# Rid pour les machines du vlan adm
...
...
@@ -205,7 +207,8 @@ ipv6_machines_speciales = {
# Les préfixes ipv6
prefix
=
{
'subnet'
:
[
'2a01:240:fe3d::/48'
],
'serveurs'
:
[
'2a01:240:fe3d:4::/64'
],
'serveurs'
:
[
'2a01:240:fe3d:4::/64'
],
'adherents'
:
[
'2a01:240:fe3d:4::/64'
],
'fil'
:
[
'2a01:240:fe3d:4::/64'
],
'adm'
:
[
'2a01:240:fe3d:c804::/64'
],
'wifi'
:
[
'2a01:240:fe3d:c04::/64'
],
...
...
gestion/iscsi/nolslib.py
View file @
fcda8784
...
...
@@ -9,7 +9,8 @@
'''Bibliothèque pour accéder à la baie de stockage nols, récupère les données
formatées en XML'''
import
telnetlib
,
re
import
telnetlib
import
re
from
xml.etree.ElementTree
import
ElementTree
,
fromstring
# Message envoyé par le serveur pour attendre l'appuie sur touche
...
...
surveillance/mac_prises/mac_prise_analyzer.py
View file @
fcda8784
...
...
@@ -137,7 +137,7 @@ Subject: %(subject)s
Content-Type: multipart/mixed; boundary="_424234545aaff-ffca234efff-556adceff5646_"
--_424234545aaff-ffca234efff-556adceff5646_
Content-Type: text/plain
,
charset="UTF-8"
Content-Type: text/plain
;
charset="UTF-8"
%(contenu)s
...
...
surveillance/mac_prises/mac_prise_reperage.py
View file @
fcda8784
...
...
@@ -98,7 +98,7 @@ if __name__ == '__main__':
message
=
"""From: %(from)s
To: %(to)s
Subject: %(subject)s
Content-Type: text/plain
,
charset="UTF-8"
Content-Type: text/plain
;
charset="UTF-8"
%(contenu)s
...
...
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