From 05b5a9ba6c637e5b7ff30a0ea67a9ebb32e8a595 Mon Sep 17 00:00:00 2001 From: Faiyaz Ahmed Date: Wed, 14 Nov 2007 21:57:58 +0000 Subject: [PATCH] deprecating vnet. --- python/bwlimit.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/python/bwlimit.py b/python/bwlimit.py index 6892089..8221e7b 100644 --- a/python/bwlimit.py +++ b/python/bwlimit.py @@ -348,11 +348,11 @@ def init(dev = dev, bwcap = bwmax): # Set up the root class (and tell VNET what it is). Packets sent # by root end up here and are capped at the node bandwidth # cap. - on(root_xid, dev, share = root_share) - try: - file("/proc/sys/vnet/root_class", "w").write("%d" % ((1 << 16) | default_minor | root_xid)) - except: - pass + #on(root_xid, dev, share = root_share) + #try: + # file("/proc/sys/vnet/root_class", "w").write("%d" % ((1 << 16) | default_minor | root_xid)) + #except: + # pass # Set up the default class. Packets that fail classification end # up here. @@ -574,7 +574,7 @@ def exempt_init(group_name, node_ips): """ # Clean up - iptables = "/sbin/iptables -t vnet %s POSTROUTING" + iptables = "/sbin/iptables -t MANGLE %s POSTROUTING" run(iptables % "-F") run("/sbin/ipset -X " + group_name) -- 2.43.0