[switchs2] s/data_header/config_header/
This commit is contained in:
parent
3e5b3749f2
commit
248702cfe2
1 changed files with 2 additions and 2 deletions
|
@ -245,7 +245,7 @@ def conf_switch(hostname):
|
||||||
|
|
||||||
for com in switch['info']:
|
for com in switch['info']:
|
||||||
if com.value.startswith(';'):
|
if com.value.startswith(';'):
|
||||||
data['data_header'] = com.value.encode('utf-8')
|
data['config_header'] = com.value.encode('utf-8')
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
print(((u'Impossible de déterminer le header à utiliser pour %s;' +
|
print(((u'Impossible de déterminer le header à utiliser pour %s;' +
|
||||||
|
@ -253,7 +253,7 @@ def conf_switch(hostname):
|
||||||
% switch).encode('utf-8'), file=sys.stderr)
|
% switch).encode('utf-8'), file=sys.stderr)
|
||||||
data['config_header']= '; J4899A Configuration Editor; Created on release #H.10.50'
|
data['config_header']= '; J4899A Configuration Editor; Created on release #H.10.50'
|
||||||
|
|
||||||
imodel = data['data_header'].split(' ', 2)[1]
|
imodel = data['config_header'].split(' ', 2)[1]
|
||||||
if imodel == "J9145A":
|
if imodel == "J9145A":
|
||||||
data['module_type'] = 'module 1 type J9145A'
|
data['module_type'] = 'module 1 type J9145A'
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue