Image Creation Message Corrected + ucloud-host read Physical Device for VXLAN from .env

This commit is contained in:
ahmadbilalkhalid 2019-11-12 15:26:10 +05:00
commit 5d613df33d
5 changed files with 183 additions and 3 deletions

View file

@ -121,7 +121,7 @@ def get_start_command_args(
network_id = str(network.value["id"])
if network_type == "vxlan":
tap = create_vxlan_br_tap(network_id, "eno1")
tap = create_vxlan_br_tap(network_id, config("VXLAN_PHY_DEV"))
command += " -netdev tap,id=vmnet{net_id},ifname={tap},script=no,downscript=no"\
" -device virtio-net-pci,netdev=vmnet{net_id},mac={mac}"\