Guest User

Untitled

a guest
Dec 13th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.72 KB | None | 0 0
  1.  
  2.  
  3. VM1 20.0.0.6 -compute fc55c9b7-d275-4850-b7a4-f45b11f5ba68 (Port -Id's)
  4. VM2 20.0.0.16 20.0.0.33 -compute f8a2cdb0c588-4d4d-89d7-62d70692b2f0,90f67525-44ce-4d78-a9ba-e13263fd99b5
  5. VM3 20.0.0.27 20.0.0.36 -controller ed639568-aa9a-48e2-ae9b-55af468f2649,ab2e3e9a-72e6-46ef-9abf-7f1aa6d8c471
  6. VM4 20.0.0.32 20.0.0.23 -compute d86cd73f-9b76-4268-9631-fae167b3e723,07b0914f-9d67-453d-a7e6-494f474f06d1
  7. VM5 20.0.0.28 -compute 7d4af774-09da-409d-99c2-6c947168f95a
  8.  
  9.  
  10. **********************************Port Pairs for VM2 VM3 and VM4************************************
  11. [root@NaplesController ~]# neutron port-pair-create --ingress f8a2cdb0-c588-4d4d-89d7-62d70692b2f0 --egress 90f67525-44ce-4d78-a9ba-e13263fd99b5 P1
  12. neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
  13. Created a new port_pair:
  14. +-----------------------------+--------------------------------------+
  15. | Field | Value |
  16. +-----------------------------+--------------------------------------+
  17. | description | |
  18. | egress | 90f67525-44ce-4d78-a9ba-e13263fd99b5 |
  19. | id | fa1404f0-e5aa-467d-9cb0-c44bc88b1484 |
  20. | ingress | f8a2cdb0-c588-4d4d-89d7-62d70692b2f0 |
  21. | name | P1 |
  22. | project_id | 6ddeb978c8444171913e4f4247353802 |
  23. | service_function_parameters | {"weight": 1, "correlation": null} |
  24. | tenant_id | 6ddeb978c8444171913e4f4247353802 |
  25. +-----------------------------+--------------------------------------+
  26. [root@NaplesController ~]# neutron port-pair-create --egress f8a2cdb0-c588-4d4d-89d7-62d70692b2f0 --ingress 90f67525-44ce-4d78-a9ba-e13263fd99b5 P1-re
  27. neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
  28. Created a new port_pair:
  29. +-----------------------------+--------------------------------------+
  30. | Field | Value |
  31. +-----------------------------+--------------------------------------+
  32. | description | |
  33. | egress | f8a2cdb0-c588-4d4d-89d7-62d70692b2f0 |
  34. | id | 836e9bea-4f55-4467-abf6-ba8265e49dda |
  35. | ingress | 90f67525-44ce-4d78-a9ba-e13263fd99b5 |
  36. | name | P1-re |
  37. | project_id | 6ddeb978c8444171913e4f4247353802 |
  38. | service_function_parameters | {"weight": 1, "correlation": null} |
  39. | tenant_id | 6ddeb978c8444171913e4f4247353802 |
  40. +-----------------------------+--------------------------------------+
  41.  
  42.  
  43.  
  44. [root@NaplesController ~]# neutron port-pair-create --ingress ed639568-aa9a-48e2-ae9b-55af468f2649 --egress ab2e3e9a-72e6-46ef-9abf-7f1aa6d8c471 P2-cntrl
  45. neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
  46. Created a new port_pair:
  47. +-----------------------------+--------------------------------------+
  48. | Field | Value |
  49. +-----------------------------+--------------------------------------+
  50. | description | |
  51. | egress | ab2e3e9a-72e6-46ef-9abf-7f1aa6d8c471 |
  52. | id | 836d493c-0086-4823-8341-a2a5a7b257fd |
  53. | ingress | ed639568-aa9a-48e2-ae9b-55af468f2649 |
  54. | name | P2-cntrl |
  55. | project_id | 6ddeb978c8444171913e4f4247353802 |
  56. | service_function_parameters | {"weight": 1, "correlation": null} |
  57. | tenant_id | 6ddeb978c8444171913e4f4247353802 |
  58. +-----------------------------+--------------------------------------+
  59. [root@NaplesController ~]# neutron port-pair-create --egress ed639568-aa9a-48e2-ae9b-55af468f2649 --ingress ab2e3e9a-72e6-46ef-9abf-7f1aa6d8c471 P2-cntrl-re
  60. neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
  61. Created a new port_pair:
  62. +-----------------------------+--------------------------------------+
  63. | Field | Value |
  64. +-----------------------------+--------------------------------------+
  65. | description | |
  66. | egress | ed639568-aa9a-48e2-ae9b-55af468f2649 |
  67. | id | 2a73906c-97c6-4a07-8f51-db5ba27070d8 |
  68. | ingress | ab2e3e9a-72e6-46ef-9abf-7f1aa6d8c471 |
  69. | name | P2-cntrl-re |
  70. | project_id | 6ddeb978c8444171913e4f4247353802 |
  71. | service_function_parameters | {"weight": 1, "correlation": null} |
  72. | tenant_id | 6ddeb978c8444171913e4f4247353802 |
  73. +-----------------------------+--------------------------------------+
  74.  
  75.  
  76.  
  77. [root@NaplesController ~]# neutron port-pair-create --ingress d86cd73f-9b76-4268-9631-fae167b3e723 --egress 07b0914f-9d67-453d-a7e6-494f474f06d1 P3
  78. neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
  79. Created a new port_pair:
  80. +-----------------------------+--------------------------------------+
  81. | Field | Value |
  82. +-----------------------------+--------------------------------------+
  83. | description | |
  84. | egress | 07b0914f-9d67-453d-a7e6-494f474f06d1 |
  85. | id | 3091102e-9025-4631-bd1b-3739f4544411 |
  86. | ingress | d86cd73f-9b76-4268-9631-fae167b3e723 |
  87. | name | P3 |
  88. | project_id | 6ddeb978c8444171913e4f4247353802 |
  89. | service_function_parameters | {"weight": 1, "correlation": null} |
  90. | tenant_id | 6ddeb978c8444171913e4f4247353802 |
  91. +-----------------------------+--------------------------------------+
  92. [root@NaplesController ~]# neutron port-pair-create --egress d86cd73f-9b76-4268-9631-fae167b3e723 --ingress 07b0914f-9d67-453d-a7e6-494f474f06d1 P3-re
  93. neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
  94. neutron Created a new port_pair:
  95. +-----------------------------+--------------------------------------+
  96. | Field | Value |
  97. +-----------------------------+--------------------------------------+
  98. | description | |
  99. | egress | d86cd73f-9b76-4268-9631-fae167b3e723 |
  100. | id | f86cf026-7f3a-4e7f-b9bc-4ba267feb010 |
  101. | ingress | 07b0914f-9d67-453d-a7e6-494f474f06d1 |
  102. | name | P3-re |
  103. | project_id | 6ddeb978c8444171913e4f4247353802 |
  104. | service_function_parameters | {"weight": 1, "correlation": null} |
  105. | tenant_id | 6ddeb978c8444171913e4f4247353802 |
  106. +-----------------------------+--------------------------------------+
  107.  
  108. *******************************Port pair groups for VM2 VM3 and VM4**************************************
  109. [root@NaplesController ~]# neutron port-pair-group-create --port-pair P1 PG1
  110. neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
  111. Created a new port_pair_group:
  112. +----------------------------+--------------------------------------+
  113. | Field | Value |
  114. +----------------------------+--------------------------------------+
  115. | description | |
  116. | group_id | 1 |
  117. | id | 7fcda022-03a0-4969-823b-0d86730d8806 |
  118. | name | PG1 |
  119. | port_pair_group_parameters | {"lb_fields": []} |
  120. | port_pairs | fa1404f0-e5aa-467d-9cb0-c44bc88b1484 |
  121. | project_id | 6ddeb978c8444171913e4f4247353802 |
  122. | tenant_id | 6ddeb978c8444171913e4f4247353802 |
  123. +----------------------------+--------------------------------------+
  124.  
  125.  
  126. [root@NaplesController ~]# neutron port-pair-group-create --port-pair P2-cntrl PG2-cntrl
  127. neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
  128. Created a new port_pair_group:
  129. +----------------------------+--------------------------------------+
  130. | Field | Value |
  131. +----------------------------+--------------------------------------+
  132. | description | |
  133. | group_id | 8 |
  134. | id | 9522b820-871f-4d32-9d3a-34ccc018ff3f |
  135. | name | PG2-cntrl |
  136. | port_pair_group_parameters | {"lb_fields": []} |
  137. | port_pairs | 836d493c-0086-4823-8341-a2a5a7b257fd |
  138. | project_id | 6ddeb978c8444171913e4f4247353802 |
  139. | tenant_id | 6ddeb978c8444171913e4f4247353802 |
  140. +----------------------------+--------------------------------------+
  141. [root@NaplesController ~]# neutron port-chain-create --port-pair-group PG1
  142.  
  143.  
  144. [root@NaplesController ~]# neutron port-pair-group-create --port-pair P3 PG3
  145. neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
  146. Created a new port_pair_group:
  147. +----------------------------+--------------------------------------+
  148. | Field | Value |
  149. +----------------------------+--------------------------------------+
  150. | description | |
  151. | group_id | 3 |
  152. | id | 08bee0c8-94de-49a9-bfec-ebcd84102d6d |
  153. | name | PG3 |
  154. | port_pair_group_parameters | {"lb_fields": []} |
  155. | port_pairs | 3091102e-9025-4631-bd1b-3739f4544411 |
  156. | project_id | 6ddeb978c8444171913e4f4247353802 |
  157. | tenant_id | 6ddeb978c8444171913e4f4247353802 |
  158. +----------------------------+--------------------------------------+
  159.  
  160.  
  161.  
  162. [root@NaplesController ~]# neutron port-pair-group-create --port-pair P1-re PG1-re
  163. nneutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
  164. eutron flow-Created a new port_pair_group:
  165. +----------------------------+--------------------------------------+
  166. | Field | Value |
  167. +----------------------------+--------------------------------------+
  168. | description | |
  169. | group_id | 6 |
  170. | id | 30963955-c0a0-4bc7-9fb6-ba8fa50046f5 |
  171. | name | PG1-re |
  172. | port_pair_group_parameters | {"lb_fields": []} |
  173. | port_pairs | 836e9bea-4f55-4467-abf6-ba8265e49dda |
  174. | project_id | 6ddeb978c8444171913e4f4247353802 |
  175. | tenant_id | 6ddeb978c8444171913e4f4247353802 |
  176. +----------------------------+--------------------------------------+
  177.  
  178.  
  179. [root@NaplesController ~]# neutron port-pair-group-create --port-pair P2-cntrl-re PG2-cntrl-re
  180. neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
  181. Created a new port_pair_group:
  182. +----------------------------+--------------------------------------+
  183. | Field | Value |
  184. +----------------------------+--------------------------------------+
  185. | description | |
  186. | group_id | 7 |
  187. | id | c5476f8c-2cc0-485b-8688-8f209da93c6f |
  188. | name | PG2-cntrl-re |
  189. | port_pair_group_parameters | {"lb_fields": []} |
  190. | port_pairs | 2a73906c-97c6-4a07-8f51-db5ba27070d8 |
  191. | project_id | 6ddeb978c8444171913e4f4247353802 |
  192. | tenant_id | 6ddeb978c8444171913e4f4247353802 |
  193. +----------------------------+--------------------------------------+
  194.  
  195.  
  196.  
  197. [root@NaplesController ~]# neutron port-pair-group-create --port-pair P3-re PG3-re
  198. neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
  199. Created a new port_pair_group:
  200. +----------------------------+--------------------------------------+
  201. | Field | Value |
  202. +----------------------------+--------------------------------------+
  203. | description | |
  204. | group_id | 4 |
  205. | id | e9fa4016-044f-4668-beb5-2f46bf8ca41e |
  206. | name | PG3-re |
  207. | port_pair_group_parameters | {"lb_fields": []} |
  208. | port_pairs | f86cf026-7f3a-4e7f-b9bc-4ba267feb010 |
  209. | project_id | 6ddeb978c8444171913e4f4247353802 |
  210. | tenant_id | 6ddeb978c8444171913e4f4247353802 |
  211. +----------------------------+--------------------------------------+
  212.  
  213.  
  214.  
  215. ****************************Flow Classifiers**********************************
  216.  
  217. [root@NaplesController ~]# neutron flow-classifier-create --source-ip-prefix 20.0.0.6/32 --destination-ip-prefix 20.0.0.28/32 --logical-source-port fc55c9b7-d275-4850-b7a4-f45b11f5ba68 F1
  218. neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
  219. Created a new flow_classifier:
  220. +----------------------------+--------------------------------------+
  221. | Field | Value |
  222. +----------------------------+--------------------------------------+
  223. | description | |
  224. | destination_ip_prefix | 20.0.0.28/32 |
  225. | destination_port_range_max | |
  226. | destination_port_range_min | |
  227. | ethertype | IPv4 |
  228. | id | db8475cb-3c81-45d1-a3a4-41b5f2f9b398 |
  229. | l7_parameters | {} |
  230. | logical_destination_port | |
  231. | logical_source_port | fc55c9b7-d275-4850-b7a4-f45b11f5ba68 |
  232. | name | F1 |
  233. | project_id | 6ddeb978c8444171913e4f4247353802 |
  234. | protocol | |
  235. | source_ip_prefix | 20.0.0.6/32 |
  236. | source_port_range_max | |
  237. | source_port_range_min | |
  238. | tenant_id | 6ddeb978c8444171913e4f4247353802 |
  239. +----------------------------+--------------------------------------+
  240. [root@NaplesController ~]# neutron flow-classifier-create --source-ip-prefix 20.0.0.28/32 --destination-ip-prefix 20.0.0.6/32 --logical-source-port 7d4af774-09da-409d-99c2-6c947168f95a F2
  241. neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
  242. Created a new flow_classifier:
  243. +----------------------------+--------------------------------------+
  244. | Field | Value |
  245. +----------------------------+--------------------------------------+
  246. | description | |
  247. | destination_ip_prefix | 20.0.0.6/32 |
  248. | destination_port_range_max | |
  249. | destination_port_range_min | |
  250. | ethertype | IPv4 |
  251. | id | e9a00308-876f-4212-93ae-92c5c671b58d |
  252. | l7_parameters | {} |
  253. | logical_destination_port | |
  254. | logical_source_port | 7d4af774-09da-409d-99c2-6c947168f95a |
  255. | name | F2 |
  256. | project_id | 6ddeb978c8444171913e4f4247353802 |
  257. | protocol | |
  258. | source_ip_prefix | 20.0.0.28/32 |
  259. | source_port_range_max | |
  260. | source_port_range_min | |
  261. | tenant_id | 6ddeb978c8444171913e4f4247353802 |
  262. +----------------------------+--------------------------------------+
  263.  
  264.  
  265. ****************************Port chains*****************************
  266.  
  267.  
  268. [root@NaplesController ~]# neutron port-chain-create --port-pair-group PG1 --port-pair-group PG2-cntrl --port-pair-group PG3 --flow-classifier F1 PC1
  269. neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
  270. Created a new port_chain:
  271. +------------------+---------------------------------------------+
  272. | Field | Value |
  273. +------------------+---------------------------------------------+
  274. | chain_id | 1 |
  275. | chain_parameters | {"symmetric": false, "correlation": "mpls"} |
  276. | description | |
  277. | flow_classifiers | db8475cb-3c81-45d1-a3a4-41b5f2f9b398 |
  278. | id | aefdb9db-70a5-4dea-80aa-bfaaff01b090 |
  279. | name | PC1 |
  280. | port_pair_groups | 7fcda022-03a0-4969-823b-0d86730d8806 |
  281. | | 9522b820-871f-4d32-9d3a-34ccc018ff3f |
  282. | | 08bee0c8-94de-49a9-bfec-ebcd84102d6d |
  283. | project_id | 6ddeb978c8444171913e4f4247353802 |
  284. | tenant_id | 6ddeb978c8444171913e4f4247353802 |
  285. +------------------+---------------------------------------------+
  286. [root@NaplesController ~]# neutron port-chain-create --port-pair-group PG3-re --port-pair-group PG2-cntrl-re --port-pair-group PG1-re --flow-classifier F2 PC2
  287. neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
  288. Created a new port_chain:
  289. +------------------+---------------------------------------------+
  290. | Field | Value |
  291. +------------------+---------------------------------------------+
  292. | chain_id | 2 |
  293. | chain_parameters | {"symmetric": false, "correlation": "mpls"} |
  294. | description | |
  295. | flow_classifiers | e9a00308-876f-4212-93ae-92c5c671b58d |
  296. | id | fb78ce2f-cda3-4f6a-8297-decec84fb375 |
  297. | name | PC2 |
  298. | port_pair_groups | e9fa4016-044f-4668-beb5-2f46bf8ca41e |
  299. | | c5476f8c-2cc0-485b-8688-8f209da93c6f |
  300. | | 30963955-c0a0-4bc7-9fb6-ba8fa50046f5 |
  301. | project_id | 6ddeb978c8444171913e4f4247353802 |
  302. | tenant_id | 6ddeb978c8444171913e4f4247353802 |
  303. +------------------+---------------------------------------------+
Add Comment
Please, Sign In to add comment