code: def change_port_speed(self, hardware_id, public, speed):
          
          if public:
              return self.client.call('Hardware_Server',
                                      'setPublicNetworkInterfaceSpeed',
                                      speed, id=hardware_id)
          else:
              return self.client.call('Hardware_Server',
                                      'setPrivateNetworkInterfaceSpeed',
                                      speed, id=hardware_id)
docs: Allows you to change the port speed of a server's NICs.
  
          :param int hardware_id: The ID of the server
          :param bool public: Flag to indicate which interface to change.
                              True (default) means the public interface.
                              False indicates the private interface.
          :param int speed: The port speed to set.
  
          .. warning::
              A port speed of 0 will disable the interface.
  
          Example::
  
              #change the Public interface to 10Mbps on instance 12345
              result = mgr.change_port_speed(hardware_id=12345,
                                             public=True, speed=10)
              # result will be True or an Exception