mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
The following patch removes every (hopefully) reference to network-limit.
Upon further investigation it sets Device parameters that don't exist any longer, thus causing exceptions. As it looks like this is completely obsolete, and no one is actively working on it, we should just rip it out to end the confusion. Signed-off-by: Sean Dague <sean@dague.net>
This commit is contained in:
1 parent
56be995b8a
commit
cb248d6b16
4 files changed
-33
No files matched your search
@@ -302,13 +302,6 @@ class Xend:
|
||||
{'op' : 'set_vcpus',
|
||||
'vcpus' : vcpus })
|
||||
|
||||
def xend_domain_vif_limit(self, id, vif, credit, period):
|
||||
return self.xendPost(self.domainurl(id),
|
||||
{ 'op' : 'vif_limit_set',
|
||||
'vif' : vif,
|
||||
'credit' : credit,
|
||||
'period' : period })
|
||||
|
||||
def xend_domain_devices(self, id, type):
|
||||
return self.xendPost(self.domainurl(id),
|
||||
{'op' : 'devices',
|
||||
|
||||
@@ -467,17 +467,6 @@ class XendDomain:
|
||||
except Exception, ex:
|
||||
raise XendError(str(ex))
|
||||
|
||||
|
||||
def domain_vif_limit_set(self, domid, vif, credit, period):
|
||||
"""Limit the vif's transmission rate
|
||||
"""
|
||||
dominfo = self.domain_lookup(domid)
|
||||
dev = dominfo.getDevice('vif', vif)
|
||||
if not dev:
|
||||
raise XendError("invalid vif")
|
||||
return dev.setCreditLimit(credit, period)
|
||||
|
||||
|
||||
def domain_maxmem_set(self, domid, mem):
|
||||
"""Set the memory limit for a domain.
|
||||
|
||||
|
||||
@@ -118,8 +118,6 @@ xm full list of subcommands:
|
||||
Create a new virtual network device
|
||||
network-detach <DomId> <DevId> Destroy a domain's virtual network
|
||||
device, where <DevId> is the device ID.
|
||||
network-limit <DomId> <Vif> <Credit> <Period>
|
||||
Limit the transmission rate of a virtual network interface
|
||||
network-list <DomId> List virtual network interfaces for a domain
|
||||
|
||||
Vnet commands:
|
||||
@@ -557,13 +555,6 @@ def xm_log(args):
|
||||
from xen.xend.XendClient import server
|
||||
print server.xend_node_log()
|
||||
|
||||
def xm_network_limit(args):
|
||||
arg_check(args,4,"network-limit")
|
||||
dom = args[0]
|
||||
v = map(int, args[1:4])
|
||||
from xen.xend.XendClient import server
|
||||
server.xend_domain_vif_limit(dom, *v)
|
||||
|
||||
def xm_network_list(args):
|
||||
arg_check(args,1,"network-list")
|
||||
dom = args[0]
|
||||
@@ -716,7 +707,6 @@ commands = {
|
||||
# network
|
||||
"network-attach": xm_network_attach,
|
||||
"network-detach": xm_network_detach,
|
||||
"network-limit": xm_network_limit,
|
||||
"network-list": xm_network_list,
|
||||
# vnet
|
||||
"vnet-list": xm_vnet_list,
|
||||
@@ -739,7 +729,6 @@ for c in subcommands:
|
||||
aliases = {
|
||||
"balloon": "mem-set",
|
||||
"vif-list": "network-list",
|
||||
"vif-limit": "network-limit",
|
||||
"vbd-create": "block-create",
|
||||
"vbd-destroy": "block-destroy",
|
||||
"vbd-list": "block-list",
|
||||
|
||||