[config/rid] On rend utile la plage "adherents" pour faire en sorte que fil recouvre le /21
This commit is contained in:
parent
fab89806f2
commit
70286f8022
2 changed files with 6 additions and 2 deletions
|
@ -581,8 +581,10 @@ NETs_regexp = { 'all' : '^138\.231\.1(3[6789]|4[0123456789]|5[01])\.\d+$' }
|
||||||
# Merci d'essayer de les faire correspondre avec les réseaux
|
# Merci d'essayer de les faire correspondre avec les réseaux
|
||||||
# ci-dessus...
|
# ci-dessus...
|
||||||
rid = {
|
rid = {
|
||||||
|
# Rid recouvrant
|
||||||
|
'fil' : (0, 2047),
|
||||||
# Rid pour les machines fixes
|
# Rid pour les machines fixes
|
||||||
'fil' : (256, 2047),
|
'adherents' : (256, 2047),
|
||||||
# Rid pour les machines wifi
|
# Rid pour les machines wifi
|
||||||
'wifi' : (2048, 4095),
|
'wifi' : (2048, 4095),
|
||||||
# Rid pour les machines du vlan adm
|
# Rid pour les machines du vlan adm
|
||||||
|
@ -619,8 +621,10 @@ ipv6_machines_speciales = {
|
||||||
# Les préfixes ipv6
|
# Les préfixes ipv6
|
||||||
prefix = { 'subnet' : [ '2a01:240:fe3d::/48' ],
|
prefix = { 'subnet' : [ '2a01:240:fe3d::/48' ],
|
||||||
'serveurs' : [ '2a01:240:fe3d:4::/64'],
|
'serveurs' : [ '2a01:240:fe3d:4::/64'],
|
||||||
|
'serveurs-v6': [ '2a01:240:fe3d:4::/64' ],
|
||||||
'fil' : [ '2a01:240:fe3d:4::/64' ],
|
'fil' : [ '2a01:240:fe3d:4::/64' ],
|
||||||
'adm' : [ '2a01:240:fe3d:c804::/64' ],
|
'adm' : [ '2a01:240:fe3d:c804::/64' ],
|
||||||
|
'adm-v6' : [ '2a01:240:fe3d:c804::/64' ],
|
||||||
'wifi' : [ '2a01:240:fe3d:c04::/64' ],
|
'wifi' : [ '2a01:240:fe3d:c04::/64' ],
|
||||||
'fil-v6' : [ '2a01:240:fe3d:4::/64' ],
|
'fil-v6' : [ '2a01:240:fe3d:4::/64' ],
|
||||||
'wifi-v6' : [ '2a01:240:fe3d:c04::/64' ],
|
'wifi-v6' : [ '2a01:240:fe3d:c04::/64' ],
|
||||||
|
|
|
@ -86,7 +86,7 @@ class Rid(object):
|
||||||
self.ipv4_dispo = True
|
self.ipv4_dispo = True
|
||||||
self.priv = ip.is_private()
|
self.priv = ip.is_private()
|
||||||
|
|
||||||
for tp in ['fil', 'wifi', 'adm', 'gratuit', 'personnel-ens', 'serveurs']:
|
for tp in ['fil', 'adherents', 'wifi', 'adm', 'gratuit', 'personnel-ens', 'serveurs']:
|
||||||
for net in config.NETs[tp]:
|
for net in config.NETs[tp]:
|
||||||
if ip in netaddr.IPNetwork(net):
|
if ip in netaddr.IPNetwork(net):
|
||||||
self.type = tp
|
self.type = tp
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue