<commit_before>
__author__ = '<NAME> / AXEZ ICT Solutions'
__version__ = '1.2'
###     version 1.0: first release (support for 6 members)
###     version 1.1: adding support for 9 members
###     version 1.2: compacting script

###     Python Script for Deploying IRF-config and software on 5130 switches
###     WARNING!: When changing IRF Configuration, the current startup-configuration is overwritten!
###     In this script the IRF-Port-config is a fixed value for faster deploy, see settings below

###     48 Ports Switch IRF-Config
###             IRF Port  Interface                             
###             1         Ten-GigabitEthernetX/0/49            
###             2         Ten-GigabitEthernetX/0/51             
###     24 Ports Switch IRF-Config
###             IRF Port  Interface                             
###             1         Ten-GigabitEthernetX/0/25            
###             2         Ten-GigabitEthernetX/0/27

###		This script is currently supporting boot/system/PoE updates
### 	You can edit the custom config below to change the firmware/poe file-names for future releases
###	'tftpsrv' is the server where you put your firmware/poe files for downloading (for example: imc-server)

print "\n######## Deploying IRF-config and software on 5130 switches #########\n"

#### Custom Config

subfolder_bootfile = ""
bootfile = "5130ei-cmw710-boot-r3109p05.bin"
subfolder_sysfile = ""
sysfile = "5130ei-cmw710-system-r3109p05.bin"
subfolder_poefile = ""
poefile = "S5130EI-POE-145.bin"
tftpsrv = "192.168.0.1"

#### Importing python modules

import csv
import comware
import os
import sys
import termios

#### RAW user-input module
<commit_msg>HP 5130 IRF Configuration and software/PoE update script version 1.2<commit_after>
__author__ = '<NAME> / AXEZ ICT Solutions'
__version__ = '1.2'
###     version 1.0: first release (support for 6 members)
###     version 1.1: adding support for 9 members
###     version 1.2: compacting script

###     Python Script for Deploying IRF-config and software on 5130 switches
###     WARNING!: When changing IRF Configuration, the current startup-configuration is overwritten!
###     In this script the IRF-Port-config is a fixed value for faster deploy, see settings below

###     48 Ports Switch IRF-Config
###             IRF Port  Interface                             
###             1         Ten-GigabitEthernetX/0/49            
###             2         Ten-GigabitEthernetX/0/51             
###     24 Ports Switch IRF-Config
###             IRF Port  Interface                             
###             1         Ten-GigabitEthernetX/0/25            
###             2         Ten-GigabitEthernetX/0/27

### 	Priority starts with member1: 32, member2: 31, member3: 30, .....

###	This script is currently supporting boot/system/PoE updates
### 	You can edit the custom config below to change the firmware/poe file-names for future releases
###	'tftpsrv' is the server where you put your firmware/poe files for downloading (for example: imc-server)

print "\n######## Deploying IRF-config and software on 5130 switches #########\n"

#### Custom Config

subfolder_bootfile = ""
bootfile = "5130ei-cmw710-boot-r3109p05.bin"
subfolder_sysfile = ""
sysfile = "5130ei-cmw710-system-r3109p05.bin"
subfolder_poefile = ""
poefile = "S5130EI-POE-145.bin"
tftpsrv = "192.168.0.1"

#### Importing python modules

import csv
import comware
import os
import sys
import termios

#### RAW user-input module

{'fraction_non_alphanumeric': 0.10562571756601608, 'fraction_numerical': 0.04965556831228473, 'mean_word_length': 2.4954864593781343, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1257676', 'n_tokens_mistral': 1159, 'n_tokens_neox': 1038, 'n_words': 338}