[config/nolslib/mac_prises] Corrections
This commit is contained in:
parent
4afa4dc065
commit
fcda8784c9
4 changed files with 9 additions and 5 deletions
|
@ -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' ],
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue