EDR-810 proxy configuration

This commit is contained in:
Quentin WEPHRE
2025-10-14 14:13:18 +02:00
parent 20ec50badf
commit ebc9eecef8
3 changed files with 113 additions and 3 deletions

View File

@@ -2,7 +2,7 @@ import io
from fabric import Connection
from getpass import getpass
from dotenv import load_dotenv
import io # Make sure io is imported at the top of your script
import io
import os
from cube_activate_ssh import activate_ssh
from ruamel.yaml import YAML
@@ -10,6 +10,8 @@ from ruamel.yaml.scalarstring import DoubleQuotedScalarString
import shlex
import base64
load_dotenv(override=True)
def execute_command(c, command):
"""Executes a simple command on the remote device."""
try:
@@ -439,7 +441,7 @@ def write_remote_config_base64_sudo(c, remote_path, content, sudo_pass, user_own
def main():
"""Main function to parse arguments and orchestrate tasks."""
ip_address_prefix = "10.81.60." # Grandpuits subnet
ip_address_range = [ 198, 212 ]#list(range(193, 215)) # Fronm 193 to 214 # TODO: 198, 212
ip_address_range = list(range(193, 215)) # From 193 to 214
# ip_address_range.append(85) # Add 85 after 74.
hosts = [f"{ip_address_prefix}{suffix}" for suffix in ip_address_range]