From 6360084528e42c62648db0b8143e54043c30da22 Mon Sep 17 00:00:00 2001 From: zhanghao2 Date: Thu, 16 May 2019 22:54:16 -0700 Subject: [PATCH] Correct fwaas_v2 scenario in neutron The neutron command line can not create fwass_v2 resources, and so replace it with the openstack command line. Change-Id: Iad324fa12334f53b1f36c65103a702c3a961dabc Closes-bug: #1829357 --- doc/source/admin/fwaas-v2-scenario.rst | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/doc/source/admin/fwaas-v2-scenario.rst b/doc/source/admin/fwaas-v2-scenario.rst index bf161acdf85..6c94c19e445 100644 --- a/doc/source/admin/fwaas-v2-scenario.rst +++ b/doc/source/admin/fwaas-v2-scenario.rst @@ -58,7 +58,7 @@ Then, create a firewall that applies the policy. .. code-block:: console - $ neutron firewall-rule-create --protocol {tcp,udp,icmp,any} \ + $ openstack firewall group rule create --protocol {tcp,udp,icmp,any} \ --source-ip-address SOURCE_IP_ADDRESS \ --destination-ip-address DESTINATION_IP_ADDRESS \ --source-port SOURCE_PORT_RANGE --destination-port DEST_PORT_RANGE \ @@ -76,7 +76,7 @@ Then, create a firewall that applies the policy. .. code-block:: console - $ neutron firewall-policy-create --firewall-rules \ + $ openstack firewall group policy create --firewall-rule \ "FIREWALL_RULE_IDS_OR_NAMES" myfirewallpolicy Separate firewall rule IDs or names with spaces. The order in which you @@ -103,7 +103,12 @@ Then, create a firewall that applies the policy. .. code-block:: console - $ neutron firewall-create FIREWALL_POLICY_UUID + $ openstack firewall group create --ingress-firewall-policy \ + "FIREWALL_POLICY_IDS_OR_NAMES" --egress-firewall-policy \ + "FIREWALL_POLICY_IDS_OR_NAMES" --port "PORT_IDS_OR_NAMES" + + Separate firewall policy IDs or names with spaces. The direction in which you + specify the policies is important. .. note::