Changeset d4b7b29 in mainline


Ignore:
Timestamp:
2018-07-30T20:15:38Z (6 years ago)
Author:
Jiří Zárevúcky <jiri.zarevucky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6bb136b2
Parents:
2965d18
git-author:
Jiří Zárevúcky <jiri.zarevucky@…> (2018-07-30 20:02:16)
git-committer:
Jiří Zárevúcky <jiri.zarevucky@…> (2018-07-30 20:15:38)
Message:

tools/ew.py: use -netdev instead of the obsolete -net option

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/ew.py

    r2965d18 rd4b7b29  
    138138
    139139def qemu_nic_ne2k_options():
    140         return ' -device ne2k_isa,irq=5,vlan=0'
     140        return ' -device ne2k_isa,irq=5,netdev=n1'
    141141
    142142def qemu_nic_e1k_options():
    143         return ' -device e1000,vlan=0'
     143        return ' -device e1000,netdev=n1'
    144144
    145145def qemu_nic_rtl8139_options():
    146         return ' -device rtl8139,vlan=0'
     146        return ' -device rtl8139,netdev=n1'
    147147
    148148def qemu_nic_virtio_options():
    149         return ' -device virtio-net,vlan=0'
     149        return ' -device virtio-net,netdev=n1'
    150150
    151151def qemu_net_options():
     
    167167                nic_options += qemu_nic_e1k_options()
    168168
    169         return nic_options + ' -net user,hostfwd=udp::8080-:8080,hostfwd=udp::8081-:8081,hostfwd=tcp::8080-:8080,hostfwd=tcp::8081-:8081,hostfwd=tcp::2223-:2223'
     169        return nic_options + ' -netdev user,id=n1,hostfwd=udp::8080-:8080,hostfwd=udp::8081-:8081,hostfwd=tcp::8080-:8080,hostfwd=tcp::8081-:8081,hostfwd=tcp::2223-:2223'
    170170
    171171def qemu_usb_options():
Note: See TracChangeset for help on using the changeset viewer.