Commit 8b2c159a authored by Javier Velázquez's avatar Javier Velázquez
Browse files

Merge branch 'feat/15-tid-new-ipowdm-realizer' into 'develop'

Resolve "(TID) New IPoWDM realizer"

See merge request !14
parents 1e8cf081 590a893a
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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
+11 −13
Original line number Diff line number Diff line
@@ -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',
@@ -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):
        """
@@ -87,7 +87,6 @@ class cisco_connector():
            f"pw-class l2vpn_vpws_profile_example_{config['number']}"
        ])


        return commands

    def full_create_command_template(self):
@@ -117,5 +116,4 @@ class cisco_connector():

        commands.append("commit")
        commands.append("end")

        return commands