From: Waldemar Kozaczuk <[email protected]>
Committer: Waldemar Kozaczuk <[email protected]>
Branch: master
Tweak firecracker.py to disable rate limiting for network device
Signed-off-by: Waldemar Kozaczuk <[email protected]>
---
diff --git a/scripts/firecracker.py b/scripts/firecracker.py
--- a/scripts/firecracker.py
+++ b/scripts/firecracker.py
@@ -53,7 +53,27 @@ def add_network_interface(self, interface_name,
host_interface_name, ):
self.make_put_call('/network-interfaces/%s' % interface_name, {
'iface_id': interface_name,
'host_dev_name': host_interface_name,
- 'guest_mac': "52:54:00:12:34:56"
+ 'guest_mac': "52:54:00:12:34:56",
+ 'rx_rate_limiter': {
+ 'bandwidth': {
+ 'size': 0,
+ 'refill_time': 0
+ },
+ 'ops': {
+ 'size': 0,
+ 'refill_time': 0
+ }
+ },
+ 'tx_rate_limiter': {
+ 'bandwidth': {
+ 'size': 0,
+ 'refill_time': 0
+ },
+ 'ops': {
+ 'size': 0,
+ 'refill_time': 0
+ }
+ }
})
def start_instance(self):
--
You received this message because you are subscribed to the Google Groups "OSv
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.