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
This commit is contained in:
zhanghao2 2019-05-16 22:54:16 -07:00
parent 1134b2a44d
commit 6360084528
1 changed files with 8 additions and 3 deletions

View File

@ -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::