Added bandwidth generation method

Added few methods in compute linux client to generate
bandwidth from server to client. Also, some md5sum related methods and
extracting network bytes from server
* Fixed some issues with generate_bandwidth_from_server_to_client method
* Removed do_bandwidth_server_to_client from server behavior
* Changed download_a_file() to retrieve_file_from() method
* Replaced md5sum method with a common tool method

Change-Id: Ib28acbf81a19631ca176ea6cfefd19a0a8ff6738
This commit is contained in:
Priyanka Agrawal
2014-03-18 20:28:07 +05:30
parent 5b1f6d42b0
commit d52772182d
2 changed files with 118 additions and 6 deletions

View File

@@ -227,7 +227,7 @@ class ServerBehaviors(BaseBehavior):
@return: Either IPv4 or IPv6 address of instance
@rtype: String
"""
if self.config.ip_address_version_for_ssh == '4':
if self.config.ip_address_version_for_ssh == 4:
return server.addresses.public.ipv4
else:
return server.addresses.public.ipv6