see above comment about issues with old version of eos  try something like instance type  virtual if vnic type portbindings vnic baremetal if not self cli commands  baremetal  log warning  lw  baremetal instances are not supported on this version of eos return instance type  baremetal cmds  tenant  s tenant id if self cli commands  baremetal  cmds append  instance id  s hostid  s type  s vm id  host  instance type else cmds append  vm id  s hostid  s vm id  host cmds extend no port id  s port id exit exit 