@@ -359,6 +359,14 @@ def main(args):
359359 except :
360360 mgmt_mac = False
361361 pS ("INFO" , "Mgmt Mac Parameter not found. Device MAC Address will be used for the System ID" )
362+ # Check for 32 or 64 bit EOS image to use
363+ try :
364+ if topo_yaml ["images" ]["64-bit" ]:
365+ ceos_build = "ceosimage-64"
366+ else :
367+ ceos_build = "ceosimage"
368+ except :
369+ ceos_build = "ceosimage"
362370 # Load and Gather network Link information
363371 pS ("INFO" , "Gathering patch cable lengths and quantities..." )
364372 for _link in links :
@@ -438,8 +446,8 @@ def main(args):
438446 create_output .append (NOTIFY_ADJUST )
439447 # Check for container images are present in local registry deployment
440448 if container_registry == "local" :
441- create_output .append (f"if [ \" $({ cnt_cmd } image ls | grep ceosimage | grep -c { ceos_image } )\" == 0 ]\n " )
442- create_output .append (f"then\n echo \" { container_runtime .capitalize ()} image not found for ceosimage :{ ceos_image } , please build it first.\" \n exit\n fi\n " )
449+ create_output .append (f"if [ \" $({ cnt_cmd } image ls | grep { ceos_build } | grep -c { ceos_image } )\" == 0 ]\n " )
450+ create_output .append (f"then\n echo \" { container_runtime .capitalize ()} image not found for { ceos_build } :{ ceos_image } , please build it first.\" \n exit\n fi\n " )
443451 create_output .append (f"if [ \" $({ cnt_cmd } image ls | grep chost | grep -c { host_image } )\" == 0 ]\n " )
444452 create_output .append (f"then\n echo \" { container_runtime .capitalize ()} image not found for chost:{ host_image } , please build it first.\" \n exit\n fi\n " )
445453 else :
@@ -567,16 +575,16 @@ def main(args):
567575 create_output .append (f"echo \" Powering on { _node } \" \n " )
568576 startup_output .append (f"echo \" Powering on { _node } \" \n " )
569577 if container_runtime == "docker" :
570- create_output .append (f"{ cnt_cmd } run -d --name={ CEOS [_node ].ceos_name } { cnt_log } 1m --net=container:{ CEOS [_node ].ceos_name } -net --ip { CEOS [_node ].ip } --privileged -v /etc/sysctl.d/99-zceos.conf:/etc/sysctl.d/99-zceos.conf:ro -v { CONFIGS } /{ _tag } /{ _node } :/mnt/flash:Z -e INTFTYPE=et -e MGMT_INTF=eth0 -e ETBA=1 -e SKIP_ZEROTOUCH_BARRIER_IN_SYSDBINIT=1 -e CEOS=1 -e EOS_PLATFORM=ceoslab -e container=docker -i -t { registry_cmd } ceosimage :{ CEOS [_node ].image } /sbin/init systemd.setenv=INTFTYPE=et systemd.setenv=MGMT_INTF=eth0 systemd.setenv=ETBA=1 systemd.setenv=SKIP_ZEROTOUCH_BARRIER_IN_SYSDBINIT=1 systemd.setenv=CEOS=1 systemd.setenv=EOS_PLATFORM=ceoslab systemd.setenv=container=docker 1> /dev/null 2> /dev/null\n " )
578+ create_output .append (f"{ cnt_cmd } run -d --name={ CEOS [_node ].ceos_name } { cnt_log } 1m --net=container:{ CEOS [_node ].ceos_name } -net --ip { CEOS [_node ].ip } --privileged -v /etc/sysctl.d/99-zceos.conf:/etc/sysctl.d/99-zceos.conf:ro -v { CONFIGS } /{ _tag } /{ _node } :/mnt/flash:Z -e INTFTYPE=et -e MGMT_INTF=eth0 -e ETBA=1 -e SKIP_ZEROTOUCH_BARRIER_IN_SYSDBINIT=1 -e CEOS=1 -e EOS_PLATFORM=ceoslab -e container=docker -i -t { registry_cmd } { ceos_build } :{ CEOS [_node ].image } /sbin/init systemd.setenv=INTFTYPE=et systemd.setenv=MGMT_INTF=eth0 systemd.setenv=ETBA=1 systemd.setenv=SKIP_ZEROTOUCH_BARRIER_IN_SYSDBINIT=1 systemd.setenv=CEOS=1 systemd.setenv=EOS_PLATFORM=ceoslab systemd.setenv=container=docker 1> /dev/null 2> /dev/null\n " )
571579 else :
572- create_output .append (f"{ cnt_cmd } run -d --name={ CEOS [_node ].ceos_name } { cnt_log } 1m --net=container:{ CEOS [_node ].ceos_name } -net --privileged -v /etc/sysctl.d/99-zceos.conf:/etc/sysctl.d/99-zceos.conf:ro -v { CONFIGS } /{ _tag } /{ _node } :/mnt/flash:Z -e INTFTYPE=et -e MGMT_INTF=eth0 -e ETBA=1 -e SKIP_ZEROTOUCH_BARRIER_IN_SYSDBINIT=1 -e CEOS=1 -e EOS_PLATFORM=ceoslab -e container=docker -i -t { registry_cmd } ceosimage :{ CEOS [_node ].image } /sbin/init systemd.setenv=INTFTYPE=et systemd.setenv=MGMT_INTF=eth0 systemd.setenv=ETBA=1 systemd.setenv=SKIP_ZEROTOUCH_BARRIER_IN_SYSDBINIT=1 systemd.setenv=CEOS=1 systemd.setenv=EOS_PLATFORM=ceoslab systemd.setenv=container=docker 1> /dev/null 2> /dev/null\n " )
580+ create_output .append (f"{ cnt_cmd } run -d --name={ CEOS [_node ].ceos_name } { cnt_log } 1m --net=container:{ CEOS [_node ].ceos_name } -net --privileged -v /etc/sysctl.d/99-zceos.conf:/etc/sysctl.d/99-zceos.conf:ro -v { CONFIGS } /{ _tag } /{ _node } :/mnt/flash:Z -e INTFTYPE=et -e MGMT_INTF=eth0 -e ETBA=1 -e SKIP_ZEROTOUCH_BARRIER_IN_SYSDBINIT=1 -e CEOS=1 -e EOS_PLATFORM=ceoslab -e container=docker -i -t { registry_cmd } { ceos_build } :{ CEOS [_node ].image } /sbin/init systemd.setenv=INTFTYPE=et systemd.setenv=MGMT_INTF=eth0 systemd.setenv=ETBA=1 systemd.setenv=SKIP_ZEROTOUCH_BARRIER_IN_SYSDBINIT=1 systemd.setenv=CEOS=1 systemd.setenv=EOS_PLATFORM=ceoslab systemd.setenv=container=docker 1> /dev/null 2> /dev/null\n " )
573581 if container_runtime == "docker" :
574- startup_output .append (f"{ cnt_cmd } run -d --name={ CEOS [_node ].ceos_name } { cnt_log } 1m --net=container:{ CEOS [_node ].ceos_name } -net --ip { CEOS [_node ].ip } --privileged -v /etc/sysctl.d/99-zceos.conf:/etc/sysctl.d/99-zceos.conf:ro -v { CONFIGS } /{ _tag } /{ _node } :/mnt/flash:Z -e INTFTYPE=et -e MGMT_INTF=eth0 -e ETBA=1 -e SKIP_ZEROTOUCH_BARRIER_IN_SYSDBINIT=1 -e CEOS=1 -e EOS_PLATFORM=ceoslab -e container=docker -i -t { registry_cmd } ceosimage :{ CEOS [_node ].image } /sbin/init systemd.setenv=INTFTYPE=et systemd.setenv=MGMT_INTF=eth0 systemd.setenv=ETBA=1 systemd.setenv=SKIP_ZEROTOUCH_BARRIER_IN_SYSDBINIT=1 systemd.setenv=CEOS=1 systemd.setenv=EOS_PLATFORM=ceoslab systemd.setenv=container=docker 1> /dev/null 2> /dev/null\n " )
582+ startup_output .append (f"{ cnt_cmd } run -d --name={ CEOS [_node ].ceos_name } { cnt_log } 1m --net=container:{ CEOS [_node ].ceos_name } -net --ip { CEOS [_node ].ip } --privileged -v /etc/sysctl.d/99-zceos.conf:/etc/sysctl.d/99-zceos.conf:ro -v { CONFIGS } /{ _tag } /{ _node } :/mnt/flash:Z -e INTFTYPE=et -e MGMT_INTF=eth0 -e ETBA=1 -e SKIP_ZEROTOUCH_BARRIER_IN_SYSDBINIT=1 -e CEOS=1 -e EOS_PLATFORM=ceoslab -e container=docker -i -t { registry_cmd } { ceos_build } :{ CEOS [_node ].image } /sbin/init systemd.setenv=INTFTYPE=et systemd.setenv=MGMT_INTF=eth0 systemd.setenv=ETBA=1 systemd.setenv=SKIP_ZEROTOUCH_BARRIER_IN_SYSDBINIT=1 systemd.setenv=CEOS=1 systemd.setenv=EOS_PLATFORM=ceoslab systemd.setenv=container=docker 1> /dev/null 2> /dev/null\n " )
575583 else :
576- startup_output .append (f"{ cnt_cmd } run -d --name={ CEOS [_node ].ceos_name } { cnt_log } 1m --net=container:{ CEOS [_node ].ceos_name } -net --privileged -v /etc/sysctl.d/99-zceos.conf:/etc/sysctl.d/99-zceos.conf:ro -v { CONFIGS } /{ _tag } /{ _node } :/mnt/flash:Z -e INTFTYPE=et -e MGMT_INTF=eth0 -e ETBA=1 -e SKIP_ZEROTOUCH_BARRIER_IN_SYSDBINIT=1 -e CEOS=1 -e EOS_PLATFORM=ceoslab -e container=docker -i -t { registry_cmd } ceosimage :{ CEOS [_node ].image } /sbin/init systemd.setenv=INTFTYPE=et systemd.setenv=MGMT_INTF=eth0 systemd.setenv=ETBA=1 systemd.setenv=SKIP_ZEROTOUCH_BARRIER_IN_SYSDBINIT=1 systemd.setenv=CEOS=1 systemd.setenv=EOS_PLATFORM=ceoslab systemd.setenv=container=docker 1> /dev/null 2> /dev/null\n " )
584+ startup_output .append (f"{ cnt_cmd } run -d --name={ CEOS [_node ].ceos_name } { cnt_log } 1m --net=container:{ CEOS [_node ].ceos_name } -net --privileged -v /etc/sysctl.d/99-zceos.conf:/etc/sysctl.d/99-zceos.conf:ro -v { CONFIGS } /{ _tag } /{ _node } :/mnt/flash:Z -e INTFTYPE=et -e MGMT_INTF=eth0 -e ETBA=1 -e SKIP_ZEROTOUCH_BARRIER_IN_SYSDBINIT=1 -e CEOS=1 -e EOS_PLATFORM=ceoslab -e container=docker -i -t { registry_cmd } { ceos_build } :{ CEOS [_node ].image } /sbin/init systemd.setenv=INTFTYPE=et systemd.setenv=MGMT_INTF=eth0 systemd.setenv=ETBA=1 systemd.setenv=SKIP_ZEROTOUCH_BARRIER_IN_SYSDBINIT=1 systemd.setenv=CEOS=1 systemd.setenv=EOS_PLATFORM=ceoslab systemd.setenv=container=docker 1> /dev/null 2> /dev/null\n " )
577585 else :
578- create_output .append (f"{ cnt_cmd } run -d --name={ CEOS [_node ].ceos_name } { cnt_log } 1m --net=container:{ CEOS [_node ].ceos_name } -net --privileged -v /etc/sysctl.d/99-zceos.conf:/etc/sysctl.d/99-zceos.conf:ro -v { CONFIGS } /{ _tag } /{ _node } :/mnt/flash:Z -e INTFTYPE=et -e MGMT_INTF=eth0 -e ETBA=1 -e SKIP_ZEROTOUCH_BARRIER_IN_SYSDBINIT=1 -e CEOS=1 -e EOS_PLATFORM=ceoslab -e container=docker -i -t { registry_cmd } ceosimage :{ CEOS [_node ].image } /sbin/init systemd.setenv=INTFTYPE=et systemd.setenv=MGMT_INTF=eth0 systemd.setenv=ETBA=1 systemd.setenv=SKIP_ZEROTOUCH_BARRIER_IN_SYSDBINIT=1 systemd.setenv=CEOS=1 systemd.setenv=EOS_PLATFORM=ceoslab systemd.setenv=container=docker 1> /dev/null 2> /dev/null\n " )
579- startup_output .append (f"{ cnt_cmd } run -d --name={ CEOS [_node ].ceos_name } { cnt_log } 1m --net=container:{ CEOS [_node ].ceos_name } -net --privileged -v /etc/sysctl.d/99-zceos.conf:/etc/sysctl.d/99-zceos.conf:ro -v { CONFIGS } /{ _tag } /{ _node } :/mnt/flash:Z -e INTFTYPE=et -e MGMT_INTF=eth0 -e ETBA=1 -e SKIP_ZEROTOUCH_BARRIER_IN_SYSDBINIT=1 -e CEOS=1 -e EOS_PLATFORM=ceoslab -e container=docker -i -t { registry_cmd } ceosimage :{ CEOS [_node ].image } /sbin/init systemd.setenv=INTFTYPE=et systemd.setenv=MGMT_INTF=eth0 systemd.setenv=ETBA=1 systemd.setenv=SKIP_ZEROTOUCH_BARRIER_IN_SYSDBINIT=1 systemd.setenv=CEOS=1 systemd.setenv=EOS_PLATFORM=ceoslab systemd.setenv=container=docker 1> /dev/null 2> /dev/null\n " )
586+ create_output .append (f"{ cnt_cmd } run -d --name={ CEOS [_node ].ceos_name } { cnt_log } 1m --net=container:{ CEOS [_node ].ceos_name } -net --privileged -v /etc/sysctl.d/99-zceos.conf:/etc/sysctl.d/99-zceos.conf:ro -v { CONFIGS } /{ _tag } /{ _node } :/mnt/flash:Z -e INTFTYPE=et -e MGMT_INTF=eth0 -e ETBA=1 -e SKIP_ZEROTOUCH_BARRIER_IN_SYSDBINIT=1 -e CEOS=1 -e EOS_PLATFORM=ceoslab -e container=docker -i -t { registry_cmd } { ceos_build } :{ CEOS [_node ].image } /sbin/init systemd.setenv=INTFTYPE=et systemd.setenv=MGMT_INTF=eth0 systemd.setenv=ETBA=1 systemd.setenv=SKIP_ZEROTOUCH_BARRIER_IN_SYSDBINIT=1 systemd.setenv=CEOS=1 systemd.setenv=EOS_PLATFORM=ceoslab systemd.setenv=container=docker 1> /dev/null 2> /dev/null\n " )
587+ startup_output .append (f"{ cnt_cmd } run -d --name={ CEOS [_node ].ceos_name } { cnt_log } 1m --net=container:{ CEOS [_node ].ceos_name } -net --privileged -v /etc/sysctl.d/99-zceos.conf:/etc/sysctl.d/99-zceos.conf:ro -v { CONFIGS } /{ _tag } /{ _node } :/mnt/flash:Z -e INTFTYPE=et -e MGMT_INTF=eth0 -e ETBA=1 -e SKIP_ZEROTOUCH_BARRIER_IN_SYSDBINIT=1 -e CEOS=1 -e EOS_PLATFORM=ceoslab -e container=docker -i -t { registry_cmd } { ceos_build } :{ CEOS [_node ].image } /sbin/init systemd.setenv=INTFTYPE=et systemd.setenv=MGMT_INTF=eth0 systemd.setenv=ETBA=1 systemd.setenv=SKIP_ZEROTOUCH_BARRIER_IN_SYSDBINIT=1 systemd.setenv=CEOS=1 systemd.setenv=EOS_PLATFORM=ceoslab systemd.setenv=container=docker 1> /dev/null 2> /dev/null\n " )
580588 # Create initial host anchor containers
581589 create_output .append (f"echo \" Waiting on the server team to get their servers up and running...\" \n " )
582590 startup_output .append (f"echo \" Waiting on the server team to get their servers up and running...\" \n " )
0 commit comments