From 11486c052064dc4f0c7b17dd7a17d41e77273616 Mon Sep 17 00:00:00 2001 From: Gary Kotton Date: Wed, 11 Nov 2015 02:41:14 -0800 Subject: [PATCH] NSX|V3: ensure that rate limits are disable for the DHCP profile The rate limits should be disabled as this is not supported in KVM. This is where the DHCP agent runs. Change-Id: Ib45bc674a5f8956115f9cc7afb119b2edaab6c94 Closes-bug: #1515183 --- vmware_nsx/nsxlib/v3/resources.py | 1 + vmware_nsx/tests/unit/nsxlib/v3/test_resources.py | 1 + 2 files changed, 2 insertions(+) diff --git a/vmware_nsx/nsxlib/v3/resources.py b/vmware_nsx/nsxlib/v3/resources.py index 68cefa5519..c54372a217 100644 --- a/vmware_nsx/nsxlib/v3/resources.py +++ b/vmware_nsx/nsxlib/v3/resources.py @@ -129,6 +129,7 @@ class SwitchingProfile(AbstractRESTResource): 'server_block_enabled': False } rate_limits = { + 'enabled': False, 'rx_broadcast': 0, 'tx_broadcast': 0, 'rx_multicast': 0, diff --git a/vmware_nsx/tests/unit/nsxlib/v3/test_resources.py b/vmware_nsx/tests/unit/nsxlib/v3/test_resources.py index a860d8ed6c..8c3626a065 100644 --- a/vmware_nsx/tests/unit/nsxlib/v3/test_resources.py +++ b/vmware_nsx/tests/unit/nsxlib/v3/test_resources.py @@ -145,6 +145,7 @@ class TestSwitchingProfileTestCase(nsxlib_testcase.NsxClientTestCase): 'server_block_enabled': False }, 'rate_limits': { + 'enabled': False, 'rx_broadcast': 0, 'tx_broadcast': 0, 'rx_multicast': 0,