From 65e21e3edb0630adada7407e71d31bf228a66d77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Machado?= <63718541+jcpvdm@users.noreply.github.com> Date: Wed, 12 Jun 2024 15:10:47 +0100 Subject: [PATCH] sros: fix distributed model (getMem, getCpu) (#199) --- sros/docker/launch.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sros/docker/launch.py b/sros/docker/launch.py index 24577b26..a4ed9a0c 100755 --- a/sros/docker/launch.py +++ b/sros/docker/launch.py @@ -1229,8 +1229,8 @@ def __init__(self, hostname, username, password, mode, variant, conn_mode): # cp - control plane. role is used to create a separate overlay image name self.role = "cp" - ram: int = vrnetlab.getMem(self.role, variant.get("cp").get("min_ram")) - cpu: int = vrnetlab.getCpu(self.role, variant.get("cp").get("cpu")) + ram: int = getMem(self.role, variant.get("cp").get("min_ram")) + cpu: int = getCpu(self.role, variant.get("cp").get("cpu")) slot: str = variant.get("cp").get("slot") super(SROS_cp, self).__init__( @@ -1303,8 +1303,8 @@ def __init__(self, lc_config, conn_mode, num_nics, slot=1, nic_eth_start=1): # role lc if for a line card. role is used to create a separate overlay image name self.role = "lc" - ram: int = vrnetlab.getMem(self.role, lc_config.get("min_ram")) - cpu: int = vrnetlab.getCpu(self.role, lc_config.get("cpu")) + ram: int = getMem(self.role, lc_config.get("min_ram")) + cpu: int = getCpu(self.role, lc_config.get("cpu")) super(SROS_lc, self).__init__( None,