From: Sean Dague Subject: [PATCH] remove all reference to network-limit, it calls phantom code Date: Tue, 15 Nov 2005 17:34:21 -0500 Message-ID: <20051115223421.GK9653@underhill.no-ip.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1306229822==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============1306229822== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="lildS9pRFgpM/xzO" Content-Disposition: inline --lildS9pRFgpM/xzO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable The following patch removes every (hopefully) reference to network-limit.= =20 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 Diffstat output: docs/man/xm.pod.1 | 4 ---- tools/python/xen/xend/XendClient.py | 7 ------- tools/python/xen/xend/XendDomain.py | 11 ----------- tools/python/xen/xm/main.py | 11 ----------- 4 files changed, 33 deletions(-) diff -r 9c7aeec94f8a docs/man/xm.pod.1 --- a/docs/man/xm.pod.1 Tue Nov 15 19:46:48 2005 +0100 +++ b/docs/man/xm.pod.1 Tue Nov 15 17:12:24 2005 -0500 @@ -645,10 +645,6 @@ =20 =3Ditem B I I =20 -=3Ditem B I I I I - -Limit the transmission rate of a virtual network interface. - =3Ditem B I =20 List virtual network interfaces for a domain. The returned output is diff -r 9c7aeec94f8a tools/python/xen/xend/XendClient.py --- a/tools/python/xen/xend/XendClient.py Tue Nov 15 19:46:48 2005 +0100 +++ b/tools/python/xen/xend/XendClient.py Tue Nov 15 17:12:24 2005 -0500 @@ -301,13 +301,6 @@ return self.xendPost(self.domainurl(dom), {'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 }) =20 def xend_domain_devices(self, id, type): return self.xendPost(self.domainurl(id), diff -r 9c7aeec94f8a tools/python/xen/xend/XendDomain.py --- a/tools/python/xen/xend/XendDomain.py Tue Nov 15 19:46:48 2005 +0100 +++ b/tools/python/xen/xend/XendDomain.py Tue Nov 15 17:12:24 2005 -0500 @@ -466,17 +466,6 @@ except Exception, ex: raise XendError(str(ex)) =20 - - def domain_vif_limit_set(self, domid, vif, credit, period): - """Limit the vif's transmission rate - """ - dominfo =3D self.domain_lookup(domid) - dev =3D 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. =20 diff -r 9c7aeec94f8a tools/python/xen/xm/main.py --- a/tools/python/xen/xm/main.py Tue Nov 15 19:46:48 2005 +0100 +++ b/tools/python/xen/xm/main.py Tue Nov 15 17:12:24 2005 -0500 @@ -118,8 +118,6 @@ Create a new virtual network device=20 network-detach Destroy a domain's virtual network device, where is the device I= D. - network-limit - Limit the transmission rate of a virtual network interface network-list List virtual network interfaces for a d= omain =20 Vnet commands: @@ -556,13 +554,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 =3D args[0] - v =3D map(int, args[1:4]) - from xen.xend.XendClient import server - server.xend_domain_vif_limit(dom, *v) =20 def xm_network_list(args): arg_check(args,1,"network-list") @@ -716,7 +707,6 @@ # 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 @@ aliases =3D { "balloon": "mem-set", "vif-list": "network-list", - "vif-limit": "network-limit", "vbd-create": "block-create", "vbd-destroy": "block-destroy", "vbd-list": "block-list", --=20 __________________________________________________________________ Sean Dague Mid-Hudson Valley sean at dague dot net Linux Users Group http://dague.net http://mhvlug.org There is no silver bullet. Plus, werewolves make better neighbors than zombies, and they tend to keep the vampire population down. __________________________________________________________________ --lildS9pRFgpM/xzO Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFDemJtSamXem9TdyYRAiRqAJ4nbmmyKq8llQabrAEYywb1SuDxmwCfbxlw XdAqo9TnNLtyz1xnIyQrbhI= =ac0N -----END PGP SIGNATURE----- --lildS9pRFgpM/xzO-- --===============1306229822== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============1306229822==--