From 92d0fbeafd146126897934a7ec57ebf2ccef8580 Mon Sep 17 00:00:00 2001 From: Richard Theis Date: Wed, 29 Jun 2016 09:48:04 -0500 Subject: Add port security option to network commands Add the "--enable-port-security" and "--disable-port-security" options to the "network create" and "network set" commands. This supports setting the default port security for ports created on a network. Change-Id: I1deb505bd77cef2e4bc3c2dbbb0c450665136f47 Implements: blueprint neutron-client --- openstackclient/tests/network/v2/fakes.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'openstackclient/tests/network/v2/fakes.py') diff --git a/openstackclient/tests/network/v2/fakes.py b/openstackclient/tests/network/v2/fakes.py index 50d9899c..8d5efe14 100644 --- a/openstackclient/tests/network/v2/fakes.py +++ b/openstackclient/tests/network/v2/fakes.py @@ -285,6 +285,7 @@ class FakeNetwork(object): 'availability_zones': [], 'availability_zone_hints': [], 'is_default': False, + 'port_security_enabled': True, } # Overwrite default attributes. @@ -296,6 +297,8 @@ class FakeNetwork(object): # Set attributes with special mapping in OpenStack SDK. network.project_id = network_attrs['tenant_id'] network.is_router_external = network_attrs['router:external'] + network.is_port_security_enabled = \ + network_attrs['port_security_enabled'] return network -- cgit v1.2.1