5
0
mirror of git://git.proxmox.com/git/qemu-server.git synced 2025-01-07 17:17:57 +03:00
Commit Graph

18 Commits

Author SHA1 Message Date
Wolfgang Bumiller
4f4fbeb048 fix #909: pass rate to tap_plug()
When using OVS tap_plug() resets rate limiting so we need
to pass it along to reapply it.

The rate on its own can still be hot-plugged with the
regular tap_rate_limit() call.
2016-03-08 15:52:31 +01:00
Fabian Grünbichler
ffda963f46 Refactor basic config-related methods
Drop load_config, write_config, lock_config[_xx],
check_lock, check_protection, is_template and config_file
in favour of implementions in PVE::AbstractConfig.

Implement guest_type, __config_max_unused_disks,
config_file_lock and cfs_config_path from
PVE::AbstractConfig in PVE::QemuConfig.
2016-03-08 11:41:59 +01:00
Alexandre Derumier
c30aea2b10 add support for network trunks
This add support for net trunks vlan filtering
for ovs and linux vlan-aware bridge

Can be mixed with current "tag" option

examples:
----------

allow only 802.1Q packets with vlanid 2,3,4 :

netx: .....,trunks=2,3,4

allow only 802.1Q packets with vlanid 2,3,4 and tag non-802.1Q packets to vlanid 5 :

netx: tag=5,trunks=2,3,4

tag non-802.1Q packets to vlanid 5

netx: tag=5
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2016-01-15 17:23:59 +01:00
Wolfgang Bumiller
50669ed5c0 pve-bridge-hotplug code deduplication 2015-11-14 10:34:22 +01:00
Wolfgang Link
a279a03df3 fix bug #617: change command arrangement
the ovs-vsctl del-port flush the tc settings.
So we have to change the arrangement of setting up the network.

Signed-off-by: Wolfgang Link <w.link@proxmox.com>
2015-04-10 07:00:13 +02:00
Dietmar Maurer
3eec576714 vmconfig_hotplug_pending : add update_net
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2015-01-07 06:43:11 +01:00
Alexandre Derumier
2dd4aa4c95 add firewall option to qemu network interface
this allow to disable firewall for a specific interface

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2014-05-08 08:35:37 +02:00
Dietmar Maurer
990fc5e22e use warnings instead of global -w flag 2013-10-01 13:14:49 +02:00
Alexandre Derumier
9d79146669 pve-bridge : move tap_plug code in PVE::Network::tap_plug
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2013-03-05 12:08:00 +01:00
Alexandre Derumier
56ccc25d44 pve-bridge : move tap creation code in PVE::Network::tap_create
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2013-03-05 12:07:29 +01:00
Alexandre Derumier
041dd2d8c7 pve-bridge : move rate limit code to PVE::Network:tap_rate_limit
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2013-03-05 12:06:56 +01:00
Dietmar Maurer
8afd0c622f show better error message if bridge does not exist 2012-12-06 07:56:11 +01:00
Alexandre Derumier
ff166084d8 pve-bridge : use mtu of the bridge for tap interface
currently if the bridge have a mtu of 9000, when putting a tap interface on it (mtu 1500 by default),
the mtu of the bridge goes to 1500.

we want that the mtu of the tap interface equal the mtu of the bridge

correcting bug:
https://bugzilla.proxmox.com/show_bug.cgi?id=258

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2012-09-28 16:18:45 +02:00
Dietmar Maurer
d691e6d3ec pve-bridge: use enviroment variable PVE_MIGRATED_FROM
We use environment variable to pass additional information the
the network script.
2012-08-23 07:26:41 +02:00
Dietmar Maurer
9f03d50d5c use new network setup code from PVE::Network (libpve-common-perl) 2012-03-28 10:42:02 +02:00
Derumier Alexandre
5070f384d1 renamme vlan option to tag
Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
2012-03-22 06:27:58 +01:00
Derumier Alexandre
3c720aeac6 add vlan for testing
Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
2012-03-20 06:12:46 +01:00
Dietmar Maurer
1e3baf05f2 imported from svn 'qemu-server/pve2' 2011-08-23 07:47:04 +02:00