← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1279212] Re: The "firewall-policy-insert-rule" returns json output instead of Field-Value table

 

** Changed in: neutron
     Assignee: (unassigned) => Eugene Nikanorov (enikanorov)

** Project changed: neutron => python-neutronclient

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1279212

Title:
  The "firewall-policy-insert-rule" returns json output instead of
  Field-Value table

Status in Python client library for Neutron:
  New

Bug description:
  Havana on RHEL6.5

  Description
  ===========

  The "firewall-policy-insert-rule" returns json output which is the
  output of "firewall-policy-show" of the same policy instead of ascii
  Field-Value table like all show commands return.

  [root@puma10 ~(keystone_admin)]# neutron firewall-policy-insert-rule f1224bee-740e-4aab-bdbe-829d76aeb647 f71439f6-9934-46b1-90b7-55fdfff5d7fd
  {"name": "tcp_90_policy", "firewall_rules": ["f71439f6-9934-46b1-90b7-55fdfff5d7fd", "4e57336a-4f91-46b8-af00-b5312fa7e175", "2f381389-3137-48f0-a7ff-86744a63c0cb"], "tenant_id": "699ae084c9df430d83dbb9a547bab2e3", "firewall_list": ["8a251de8-4962-4d1a-b6cd-a384f4cbb15c"], "audited": false, "shared": true, "id": "f1224bee-740e-4aab-bdbe-829d76aeb647", "description": ""}

  [root@puma10 ~(keystone_admin)]# neutron firewall-policy-show f1224bee-740e-4aab-bdbe-829d76aeb647
  +----------------+--------------------------------------+
  | Field          | Value                                |
  +----------------+--------------------------------------+
  | audited        | False                                |
  | description    |                                      |
  | firewall_rules | f71439f6-9934-46b1-90b7-55fdfff5d7fd |
  |                | 4e57336a-4f91-46b8-af00-b5312fa7e175 |
  |                | 2f381389-3137-48f0-a7ff-86744a63c0cb |
  | id             | f1224bee-740e-4aab-bdbe-829d76aeb647 |
  | name           | tcp_90_policy                        |
  | shared         | True                                 |
  | tenant_id      | 699ae084c9df430d83dbb9a547bab2e3     |
  +----------------+--------------------------------------+

  
  Note that the same happens also with "neutron firewall-policy-remove-rule":

  [root@puma10 ~(keystone_admin)]# neutron firewall-policy-remove-rule 3d723253-d7f6-4481-8f06-254007fd5f79 625f7937-2f52-470a-bae5-28181d6610b3
  {"name": "policy_admin", "firewall_rules": ["edf70317-fdba-4bdb-85d8-c254ea46f619"], "tenant_id": "3384a1b666ac473b98dabcc385161a20", "firewall_list": ["72c782b2-2838-4773-b736-aa79564ac2ef"], "audited": false, "shared": true, "id": "3d723253-d7f6-4481-8f06-254007fd5f79", "description": ""}

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


References