Loading src/config/constants.py +1 −1 Original line number Diff line number Diff line Loading @@ -18,7 +18,7 @@ from pathlib import Path import os # Default port for NSC deployment NSC_PORT = os.getenv("NSC_PORT", "8081") NSC_PORT = os.getenv("NSC_PORT", "8086") # Paths BASE_DIR = Path(__file__).resolve().parent.parent.parent Loading src/realizer/tfs/helpers/cisco_connector.py +11 −13 Original line number Diff line number Diff line Loading @@ -32,7 +32,7 @@ class cisco_connector(): try: # Device configuration device = { 'device_type': 'cisco_xr', # This depends on the Cisco device type 'device_type': 'cisco_xr', 'host': self.address, 'username': 'cisco', 'password': 'cisco12345', Loading @@ -48,8 +48,8 @@ class cisco_connector(): # Close connection connection.disconnect() except Exception as e: logging.error(f"Failed to execute commands on {self.address}: {str(e)}") except EOFError as e: logging.error("Failed to execute commands on %s: %s",self.address, str(e)) def create_command_template(self, config): """ Loading Loading @@ -87,7 +87,6 @@ class cisco_connector(): f"pw-class l2vpn_vpws_profile_example_{config['number']}" ]) return commands def full_create_command_template(self): Loading Loading @@ -117,5 +116,4 @@ class cisco_connector(): commands.append("commit") commands.append("end") return commands Loading
src/config/constants.py +1 −1 Original line number Diff line number Diff line Loading @@ -18,7 +18,7 @@ from pathlib import Path import os # Default port for NSC deployment NSC_PORT = os.getenv("NSC_PORT", "8081") NSC_PORT = os.getenv("NSC_PORT", "8086") # Paths BASE_DIR = Path(__file__).resolve().parent.parent.parent Loading
src/realizer/tfs/helpers/cisco_connector.py +11 −13 Original line number Diff line number Diff line Loading @@ -32,7 +32,7 @@ class cisco_connector(): try: # Device configuration device = { 'device_type': 'cisco_xr', # This depends on the Cisco device type 'device_type': 'cisco_xr', 'host': self.address, 'username': 'cisco', 'password': 'cisco12345', Loading @@ -48,8 +48,8 @@ class cisco_connector(): # Close connection connection.disconnect() except Exception as e: logging.error(f"Failed to execute commands on {self.address}: {str(e)}") except EOFError as e: logging.error("Failed to execute commands on %s: %s",self.address, str(e)) def create_command_template(self, config): """ Loading Loading @@ -87,7 +87,6 @@ class cisco_connector(): f"pw-class l2vpn_vpws_profile_example_{config['number']}" ]) return commands def full_create_command_template(self): Loading Loading @@ -117,5 +116,4 @@ class cisco_connector(): commands.append("commit") commands.append("end") return commands