Advertisement
Guest User

Untitled

a guest
Sep 21st, 2015
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.06 KB | None | 0 0
  1. [root@puma09 ~(keystone_admin)]# neutron firewall-rule-list
  2. +--------------------------------------+------+--------------------+----------------------+---------+
  3. | id | name | firewall_policy_id | summary | enabled |
  4. +--------------------------------------+------+--------------------+----------------------+---------+
  5. | 5141c5d6-2892-4feb-9154-3c9b5e1c9476 | 1 | | TCP, | True |
  6. | | | | source: none(none), | |
  7. | | | | dest: none(none), | |
  8. | | | | allow | |
  9. +--------------------------------------+------+--------------------+----------------------+---------+
  10. [root@puma09 ~(keystone_admin)]# neutron firewall-policy-create --firewall-rules 5141c5d6-2892-4feb-9154-3c9b5e1c9476 policy1
  11. Created a new firewall_policy:
  12. +----------------+--------------------------------------+
  13. | Field | Value |
  14. +----------------+--------------------------------------+
  15. | audited | False |
  16. | description | |
  17. | firewall_rules | 5141c5d6-2892-4feb-9154-3c9b5e1c9476 |
  18. | id | c1f05baf-213f-4a4f-86e7-14d95ae697f3 |
  19. | name | policy1 |
  20. | shared | False |
  21. | tenant_id | fdaa28de32814677b4e49cc41ace61f3 |
  22. +----------------+--------------------------------------+
  23. [root@puma09 ~(keystone_admin)]#
  24. [root@puma09 ~(keystone_admin)]#
  25. [root@puma09 ~(keystone_admin)]#
  26. [root@puma09 ~(keystone_admin)]# neutron firewall-policy-list
  27. +--------------------------------------+---------+----------------------------------------+
  28. | id | name | firewall_rules |
  29. +--------------------------------------+---------+----------------------------------------+
  30. | c1f05baf-213f-4a4f-86e7-14d95ae697f3 | policy1 | [5141c5d6-2892-4feb-9154-3c9b5e1c9476] |
  31. +--------------------------------------+---------+----------------------------------------+
  32. [root@puma09 ~(keystone_admin)]# neutron firewall-create c1f05baf-213f-4a4f-86e7-14d95ae697f3
  33. Created a new firewall:
  34. +--------------------+--------------------------------------+
  35. | Field | Value |
  36. +--------------------+--------------------------------------+
  37. | admin_state_up | True |
  38. | description | |
  39. | firewall_policy_id | c1f05baf-213f-4a4f-86e7-14d95ae697f3 |
  40. | id | b34488f9-ad78-4acf-9813-5fd09e2c8c9f |
  41. | name | |
  42. | router_ids | 9357d778-8865-4756-961c-8e8a78924ef4 |
  43. | status | PENDING_CREATE |
  44. | tenant_id | fdaa28de32814677b4e49cc41ace61f3 |
  45. +--------------------+--------------------------------------+
  46. [root@puma09 ~(keystone_admin)]#
  47. [root@puma09 ~(keystone_admin)]#
  48. [root@puma09 ~(keystone_admin)]# neutron firewall-list
  49. +--------------------------------------+------+--------------------------------------+
  50. | id | name | firewall_policy_id |
  51. +--------------------------------------+------+--------------------------------------+
  52. | b34488f9-ad78-4acf-9813-5fd09e2c8c9f | | c1f05baf-213f-4a4f-86e7-14d95ae697f3 |
  53. +--------------------------------------+------+--------------------------------------+
  54. [root@puma09 ~(keystone_admin)]# neutron firewall-show b34488f9-ad78-4acf-9813-5fd09e2c8c9f
  55. +--------------------+--------------------------------------+
  56. | Field | Value |
  57. +--------------------+--------------------------------------+
  58. | admin_state_up | True |
  59. | description | |
  60. | firewall_policy_id | c1f05baf-213f-4a4f-86e7-14d95ae697f3 |
  61. | id | b34488f9-ad78-4acf-9813-5fd09e2c8c9f |
  62. | name | |
  63. | router_ids | 9357d778-8865-4756-961c-8e8a78924ef4 |
  64. | status | ACTIVE |
  65. | tenant_id | fdaa28de32814677b4e49cc41ace61f3 |
  66. +--------------------+--------------------------------------+
  67. [root@puma09 ~(keystone_admin)]#
  68. [root@puma09 ~(keystone_admin)]# neutron firewall-policy-list
  69. +--------------------------------------+---------+----------------------------------------+
  70. | id | name | firewall_rules |
  71. +--------------------------------------+---------+----------------------------------------+
  72. | c1f05baf-213f-4a4f-86e7-14d95ae697f3 | policy1 | [5141c5d6-2892-4feb-9154-3c9b5e1c9476] |
  73. +--------------------------------------+---------+----------------------------------------+
  74. [root@puma09 ~(keystone_admin)]# neutron firewall-rule-update 5141c5d6-2892-4feb-9154-3c9b5e1c9476 --protocol udp
  75. Updated firewall_rule: 5141c5d6-2892-4feb-9154-3c9b5e1c9476
  76. [root@puma09 ~(keystone_admin)]# neutron firewall-show b34488f9-ad78-4acf-9813-5fd09e2c8c9f
  77. +--------------------+--------------------------------------+
  78. | Field | Value |
  79. +--------------------+--------------------------------------+
  80. | admin_state_up | True |
  81. | description | |
  82. | firewall_policy_id | c1f05baf-213f-4a4f-86e7-14d95ae697f3 |
  83. | id | b34488f9-ad78-4acf-9813-5fd09e2c8c9f |
  84. | name | |
  85. | router_ids | 9357d778-8865-4756-961c-8e8a78924ef4 |
  86. | status | ERROR |
  87. | tenant_id | fdaa28de32814677b4e49cc41ace61f3 |
  88. +--------------------+--------------------------------------+
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement