← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1503985] [NEW] Firewall-rule-update does not show ip_version, source_address or destination address but does in horizon

 

Public bug reported:

Following is the error message from firewall-rule-update

reedip@reedip-VirtualBox:~/DocNCode/devstack$ neutron firewall-rule-update
usage: neutron firewall-rule-update [-h] [--request-format {json,xml}]
                                    [--protocol {tcp,udp,icmp,any}]
                                    FIREWALL_RULE


However, the following is possible:
reedip@reedip-VirtualBox:~/DocNCode/devstack$ neutron firewall-rule-update --ip-version=4 Test3
Updated firewall_rule: Test3


BEFORE:
reedip@reedip-VirtualBox:~/DocNCode/devstack$ neutron firewall-rule-show Test3
+------------------------+--------------------------------------+
| Field                  | Value                                |
+------------------------+--------------------------------------+
| action                 | allow                                |
| description            |                                      |
| destination_ip_address |                                      |
| destination_port       |                                      |
| enabled                | True                                 |
| firewall_policy_id     |                                      |
| id                     | cd45f338-c4d7-4287-b42e-5b1c7a7d2cec |
| ip_version             | 6                                    |
| name                   | Test3                                |
| position               |                                      |
| protocol               | tcp                                  |
| shared                 | False                                |
| source_ip_address      |                                      |
| source_port            |                                      |
| tenant_id              | 839568f2ae6b4ed4af320ddc66e39bbd     |
+------------------------+--------------------------------------+


AFTER:
reedip@reedip-VirtualBox:~/DocNCode/devstack$ neutron firewall-rule-show Test3
+------------------------+--------------------------------------+
| Field                  | Value                                |
+------------------------+--------------------------------------+
| action                 | allow                                |
| description            |                                      |
| destination_ip_address |                                      |
| destination_port       |                                      |
| enabled                | True                                 |
| firewall_policy_id     |                                      |
| id                     | cd45f338-c4d7-4287-b42e-5b1c7a7d2cec |
| ip_version             | 4                                    |
| name                   | Test3                                |
| position               |                                      |
| protocol               | tcp                                  |
| shared                 | False                                |
| source_ip_address      |                                      |
| source_port            |                                      |
| tenant_id              | 839568f2ae6b4ed4af320ddc66e39bbd     |
+------------------------+--------------------------------------+

As this possibility to change the firewall-rule  exists, the same needs
to be shown in the help for firewall-rule-update

** Affects: python-neutronclient
     Importance: Undecided
     Assignee: Reedip (reedip-banerjee)
         Status: New


** Tags: fwaas

** Changed in: horizon
     Assignee: (unassigned) => Reedip (reedip-banerjee)

** Project changed: horizon => python-neutronclient

** Tags added: fwaas

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1503985

Title:
  Firewall-rule-update does not show ip_version, source_address or
  destination address but does in horizon

Status in python-neutronclient:
  New

Bug description:
  Following is the error message from firewall-rule-update

  reedip@reedip-VirtualBox:~/DocNCode/devstack$ neutron firewall-rule-update
  usage: neutron firewall-rule-update [-h] [--request-format {json,xml}]
                                      [--protocol {tcp,udp,icmp,any}]
                                      FIREWALL_RULE

  
  However, the following is possible:
  reedip@reedip-VirtualBox:~/DocNCode/devstack$ neutron firewall-rule-update --ip-version=4 Test3
  Updated firewall_rule: Test3

  
  BEFORE:
  reedip@reedip-VirtualBox:~/DocNCode/devstack$ neutron firewall-rule-show Test3
  +------------------------+--------------------------------------+
  | Field                  | Value                                |
  +------------------------+--------------------------------------+
  | action                 | allow                                |
  | description            |                                      |
  | destination_ip_address |                                      |
  | destination_port       |                                      |
  | enabled                | True                                 |
  | firewall_policy_id     |                                      |
  | id                     | cd45f338-c4d7-4287-b42e-5b1c7a7d2cec |
  | ip_version             | 6                                    |
  | name                   | Test3                                |
  | position               |                                      |
  | protocol               | tcp                                  |
  | shared                 | False                                |
  | source_ip_address      |                                      |
  | source_port            |                                      |
  | tenant_id              | 839568f2ae6b4ed4af320ddc66e39bbd     |
  +------------------------+--------------------------------------+

  
  AFTER:
  reedip@reedip-VirtualBox:~/DocNCode/devstack$ neutron firewall-rule-show Test3
  +------------------------+--------------------------------------+
  | Field                  | Value                                |
  +------------------------+--------------------------------------+
  | action                 | allow                                |
  | description            |                                      |
  | destination_ip_address |                                      |
  | destination_port       |                                      |
  | enabled                | True                                 |
  | firewall_policy_id     |                                      |
  | id                     | cd45f338-c4d7-4287-b42e-5b1c7a7d2cec |
  | ip_version             | 4                                    |
  | name                   | Test3                                |
  | position               |                                      |
  | protocol               | tcp                                  |
  | shared                 | False                                |
  | source_ip_address      |                                      |
  | source_port            |                                      |
  | tenant_id              | 839568f2ae6b4ed4af320ddc66e39bbd     |
  +------------------------+--------------------------------------+

  As this possibility to change the firewall-rule  exists, the same
  needs to be shown in the help for firewall-rule-update

To manage notifications about this bug go to:
https://bugs.launchpad.net/python-neutronclient/+bug/1503985/+subscriptions