diff --git a/vmware_nsxlib/tests/unit/v3/test_resources.py b/vmware_nsxlib/tests/unit/v3/test_resources.py index 22430f1d..948ec937 100644 --- a/vmware_nsxlib/tests/unit/v3/test_resources.py +++ b/vmware_nsxlib/tests/unit/v3/test_resources.py @@ -183,6 +183,7 @@ class TestSwitchingProfileTestCase(nsxlib_testcase.NsxClientTestCase): 'display_name': 'plugin-mac-learning', 'description': 'mac-learning-for-plugin', 'tags': tags, + 'mac_change_allowed': True, }, sort_keys=True)) def test_find_by_display_name(self): diff --git a/vmware_nsxlib/v3/resources.py b/vmware_nsxlib/v3/resources.py index 2b3c55af..f20074aa 100644 --- a/vmware_nsxlib/v3/resources.py +++ b/vmware_nsxlib/v3/resources.py @@ -160,7 +160,8 @@ class SwitchingProfile(AbstractRESTResource): display_name=display_name, description=description, tags=tags or [], - mac_learning=mac_learning) + mac_learning=mac_learning, + mac_change_allowed=True) def create_port_mirror_profile(self, display_name, description, direction, destinations, tags=None):