Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- VM1 20.0.0.6 -compute fc55c9b7-d275-4850-b7a4-f45b11f5ba68 (Port -Id's)
- VM2 20.0.0.16 20.0.0.33 -compute f8a2cdb0c588-4d4d-89d7-62d70692b2f0,90f67525-44ce-4d78-a9ba-e13263fd99b5
- VM3 20.0.0.27 20.0.0.36 -controller ed639568-aa9a-48e2-ae9b-55af468f2649,ab2e3e9a-72e6-46ef-9abf-7f1aa6d8c471
- VM4 20.0.0.32 20.0.0.23 -compute d86cd73f-9b76-4268-9631-fae167b3e723,07b0914f-9d67-453d-a7e6-494f474f06d1
- VM5 20.0.0.28 -compute 7d4af774-09da-409d-99c2-6c947168f95a
- **********************************Port Pairs for VM2 VM3 and VM4************************************
- [root@NaplesController ~]# neutron port-pair-create --ingress f8a2cdb0-c588-4d4d-89d7-62d70692b2f0 --egress 90f67525-44ce-4d78-a9ba-e13263fd99b5 P1
- neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
- Created a new port_pair:
- +-----------------------------+--------------------------------------+
- | Field | Value |
- +-----------------------------+--------------------------------------+
- | description | |
- | egress | 90f67525-44ce-4d78-a9ba-e13263fd99b5 |
- | id | fa1404f0-e5aa-467d-9cb0-c44bc88b1484 |
- | ingress | f8a2cdb0-c588-4d4d-89d7-62d70692b2f0 |
- | name | P1 |
- | project_id | 6ddeb978c8444171913e4f4247353802 |
- | service_function_parameters | {"weight": 1, "correlation": null} |
- | tenant_id | 6ddeb978c8444171913e4f4247353802 |
- +-----------------------------+--------------------------------------+
- [root@NaplesController ~]# neutron port-pair-create --egress f8a2cdb0-c588-4d4d-89d7-62d70692b2f0 --ingress 90f67525-44ce-4d78-a9ba-e13263fd99b5 P1-re
- neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
- Created a new port_pair:
- +-----------------------------+--------------------------------------+
- | Field | Value |
- +-----------------------------+--------------------------------------+
- | description | |
- | egress | f8a2cdb0-c588-4d4d-89d7-62d70692b2f0 |
- | id | 836e9bea-4f55-4467-abf6-ba8265e49dda |
- | ingress | 90f67525-44ce-4d78-a9ba-e13263fd99b5 |
- | name | P1-re |
- | project_id | 6ddeb978c8444171913e4f4247353802 |
- | service_function_parameters | {"weight": 1, "correlation": null} |
- | tenant_id | 6ddeb978c8444171913e4f4247353802 |
- +-----------------------------+--------------------------------------+
- [root@NaplesController ~]# neutron port-pair-create --ingress ed639568-aa9a-48e2-ae9b-55af468f2649 --egress ab2e3e9a-72e6-46ef-9abf-7f1aa6d8c471 P2-cntrl
- neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
- Created a new port_pair:
- +-----------------------------+--------------------------------------+
- | Field | Value |
- +-----------------------------+--------------------------------------+
- | description | |
- | egress | ab2e3e9a-72e6-46ef-9abf-7f1aa6d8c471 |
- | id | 836d493c-0086-4823-8341-a2a5a7b257fd |
- | ingress | ed639568-aa9a-48e2-ae9b-55af468f2649 |
- | name | P2-cntrl |
- | project_id | 6ddeb978c8444171913e4f4247353802 |
- | service_function_parameters | {"weight": 1, "correlation": null} |
- | tenant_id | 6ddeb978c8444171913e4f4247353802 |
- +-----------------------------+--------------------------------------+
- [root@NaplesController ~]# neutron port-pair-create --egress ed639568-aa9a-48e2-ae9b-55af468f2649 --ingress ab2e3e9a-72e6-46ef-9abf-7f1aa6d8c471 P2-cntrl-re
- neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
- Created a new port_pair:
- +-----------------------------+--------------------------------------+
- | Field | Value |
- +-----------------------------+--------------------------------------+
- | description | |
- | egress | ed639568-aa9a-48e2-ae9b-55af468f2649 |
- | id | 2a73906c-97c6-4a07-8f51-db5ba27070d8 |
- | ingress | ab2e3e9a-72e6-46ef-9abf-7f1aa6d8c471 |
- | name | P2-cntrl-re |
- | project_id | 6ddeb978c8444171913e4f4247353802 |
- | service_function_parameters | {"weight": 1, "correlation": null} |
- | tenant_id | 6ddeb978c8444171913e4f4247353802 |
- +-----------------------------+--------------------------------------+
- [root@NaplesController ~]# neutron port-pair-create --ingress d86cd73f-9b76-4268-9631-fae167b3e723 --egress 07b0914f-9d67-453d-a7e6-494f474f06d1 P3
- neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
- Created a new port_pair:
- +-----------------------------+--------------------------------------+
- | Field | Value |
- +-----------------------------+--------------------------------------+
- | description | |
- | egress | 07b0914f-9d67-453d-a7e6-494f474f06d1 |
- | id | 3091102e-9025-4631-bd1b-3739f4544411 |
- | ingress | d86cd73f-9b76-4268-9631-fae167b3e723 |
- | name | P3 |
- | project_id | 6ddeb978c8444171913e4f4247353802 |
- | service_function_parameters | {"weight": 1, "correlation": null} |
- | tenant_id | 6ddeb978c8444171913e4f4247353802 |
- +-----------------------------+--------------------------------------+
- [root@NaplesController ~]# neutron port-pair-create --egress d86cd73f-9b76-4268-9631-fae167b3e723 --ingress 07b0914f-9d67-453d-a7e6-494f474f06d1 P3-re
- neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
- neutron Created a new port_pair:
- +-----------------------------+--------------------------------------+
- | Field | Value |
- +-----------------------------+--------------------------------------+
- | description | |
- | egress | d86cd73f-9b76-4268-9631-fae167b3e723 |
- | id | f86cf026-7f3a-4e7f-b9bc-4ba267feb010 |
- | ingress | 07b0914f-9d67-453d-a7e6-494f474f06d1 |
- | name | P3-re |
- | project_id | 6ddeb978c8444171913e4f4247353802 |
- | service_function_parameters | {"weight": 1, "correlation": null} |
- | tenant_id | 6ddeb978c8444171913e4f4247353802 |
- +-----------------------------+--------------------------------------+
- *******************************Port pair groups for VM2 VM3 and VM4**************************************
- [root@NaplesController ~]# neutron port-pair-group-create --port-pair P1 PG1
- neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
- Created a new port_pair_group:
- +----------------------------+--------------------------------------+
- | Field | Value |
- +----------------------------+--------------------------------------+
- | description | |
- | group_id | 1 |
- | id | 7fcda022-03a0-4969-823b-0d86730d8806 |
- | name | PG1 |
- | port_pair_group_parameters | {"lb_fields": []} |
- | port_pairs | fa1404f0-e5aa-467d-9cb0-c44bc88b1484 |
- | project_id | 6ddeb978c8444171913e4f4247353802 |
- | tenant_id | 6ddeb978c8444171913e4f4247353802 |
- +----------------------------+--------------------------------------+
- [root@NaplesController ~]# neutron port-pair-group-create --port-pair P2-cntrl PG2-cntrl
- neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
- Created a new port_pair_group:
- +----------------------------+--------------------------------------+
- | Field | Value |
- +----------------------------+--------------------------------------+
- | description | |
- | group_id | 8 |
- | id | 9522b820-871f-4d32-9d3a-34ccc018ff3f |
- | name | PG2-cntrl |
- | port_pair_group_parameters | {"lb_fields": []} |
- | port_pairs | 836d493c-0086-4823-8341-a2a5a7b257fd |
- | project_id | 6ddeb978c8444171913e4f4247353802 |
- | tenant_id | 6ddeb978c8444171913e4f4247353802 |
- +----------------------------+--------------------------------------+
- [root@NaplesController ~]# neutron port-chain-create --port-pair-group PG1
- [root@NaplesController ~]# neutron port-pair-group-create --port-pair P3 PG3
- neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
- Created a new port_pair_group:
- +----------------------------+--------------------------------------+
- | Field | Value |
- +----------------------------+--------------------------------------+
- | description | |
- | group_id | 3 |
- | id | 08bee0c8-94de-49a9-bfec-ebcd84102d6d |
- | name | PG3 |
- | port_pair_group_parameters | {"lb_fields": []} |
- | port_pairs | 3091102e-9025-4631-bd1b-3739f4544411 |
- | project_id | 6ddeb978c8444171913e4f4247353802 |
- | tenant_id | 6ddeb978c8444171913e4f4247353802 |
- +----------------------------+--------------------------------------+
- [root@NaplesController ~]# neutron port-pair-group-create --port-pair P1-re PG1-re
- nneutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
- eutron flow-Created a new port_pair_group:
- +----------------------------+--------------------------------------+
- | Field | Value |
- +----------------------------+--------------------------------------+
- | description | |
- | group_id | 6 |
- | id | 30963955-c0a0-4bc7-9fb6-ba8fa50046f5 |
- | name | PG1-re |
- | port_pair_group_parameters | {"lb_fields": []} |
- | port_pairs | 836e9bea-4f55-4467-abf6-ba8265e49dda |
- | project_id | 6ddeb978c8444171913e4f4247353802 |
- | tenant_id | 6ddeb978c8444171913e4f4247353802 |
- +----------------------------+--------------------------------------+
- [root@NaplesController ~]# neutron port-pair-group-create --port-pair P2-cntrl-re PG2-cntrl-re
- neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
- Created a new port_pair_group:
- +----------------------------+--------------------------------------+
- | Field | Value |
- +----------------------------+--------------------------------------+
- | description | |
- | group_id | 7 |
- | id | c5476f8c-2cc0-485b-8688-8f209da93c6f |
- | name | PG2-cntrl-re |
- | port_pair_group_parameters | {"lb_fields": []} |
- | port_pairs | 2a73906c-97c6-4a07-8f51-db5ba27070d8 |
- | project_id | 6ddeb978c8444171913e4f4247353802 |
- | tenant_id | 6ddeb978c8444171913e4f4247353802 |
- +----------------------------+--------------------------------------+
- [root@NaplesController ~]# neutron port-pair-group-create --port-pair P3-re PG3-re
- neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
- Created a new port_pair_group:
- +----------------------------+--------------------------------------+
- | Field | Value |
- +----------------------------+--------------------------------------+
- | description | |
- | group_id | 4 |
- | id | e9fa4016-044f-4668-beb5-2f46bf8ca41e |
- | name | PG3-re |
- | port_pair_group_parameters | {"lb_fields": []} |
- | port_pairs | f86cf026-7f3a-4e7f-b9bc-4ba267feb010 |
- | project_id | 6ddeb978c8444171913e4f4247353802 |
- | tenant_id | 6ddeb978c8444171913e4f4247353802 |
- +----------------------------+--------------------------------------+
- ****************************Flow Classifiers**********************************
- [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
- neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
- Created a new flow_classifier:
- +----------------------------+--------------------------------------+
- | Field | Value |
- +----------------------------+--------------------------------------+
- | description | |
- | destination_ip_prefix | 20.0.0.28/32 |
- | destination_port_range_max | |
- | destination_port_range_min | |
- | ethertype | IPv4 |
- | id | db8475cb-3c81-45d1-a3a4-41b5f2f9b398 |
- | l7_parameters | {} |
- | logical_destination_port | |
- | logical_source_port | fc55c9b7-d275-4850-b7a4-f45b11f5ba68 |
- | name | F1 |
- | project_id | 6ddeb978c8444171913e4f4247353802 |
- | protocol | |
- | source_ip_prefix | 20.0.0.6/32 |
- | source_port_range_max | |
- | source_port_range_min | |
- | tenant_id | 6ddeb978c8444171913e4f4247353802 |
- +----------------------------+--------------------------------------+
- [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
- neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
- Created a new flow_classifier:
- +----------------------------+--------------------------------------+
- | Field | Value |
- +----------------------------+--------------------------------------+
- | description | |
- | destination_ip_prefix | 20.0.0.6/32 |
- | destination_port_range_max | |
- | destination_port_range_min | |
- | ethertype | IPv4 |
- | id | e9a00308-876f-4212-93ae-92c5c671b58d |
- | l7_parameters | {} |
- | logical_destination_port | |
- | logical_source_port | 7d4af774-09da-409d-99c2-6c947168f95a |
- | name | F2 |
- | project_id | 6ddeb978c8444171913e4f4247353802 |
- | protocol | |
- | source_ip_prefix | 20.0.0.28/32 |
- | source_port_range_max | |
- | source_port_range_min | |
- | tenant_id | 6ddeb978c8444171913e4f4247353802 |
- +----------------------------+--------------------------------------+
- ****************************Port chains*****************************
- [root@NaplesController ~]# neutron port-chain-create --port-pair-group PG1 --port-pair-group PG2-cntrl --port-pair-group PG3 --flow-classifier F1 PC1
- neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
- Created a new port_chain:
- +------------------+---------------------------------------------+
- | Field | Value |
- +------------------+---------------------------------------------+
- | chain_id | 1 |
- | chain_parameters | {"symmetric": false, "correlation": "mpls"} |
- | description | |
- | flow_classifiers | db8475cb-3c81-45d1-a3a4-41b5f2f9b398 |
- | id | aefdb9db-70a5-4dea-80aa-bfaaff01b090 |
- | name | PC1 |
- | port_pair_groups | 7fcda022-03a0-4969-823b-0d86730d8806 |
- | | 9522b820-871f-4d32-9d3a-34ccc018ff3f |
- | | 08bee0c8-94de-49a9-bfec-ebcd84102d6d |
- | project_id | 6ddeb978c8444171913e4f4247353802 |
- | tenant_id | 6ddeb978c8444171913e4f4247353802 |
- +------------------+---------------------------------------------+
- [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
- neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
- Created a new port_chain:
- +------------------+---------------------------------------------+
- | Field | Value |
- +------------------+---------------------------------------------+
- | chain_id | 2 |
- | chain_parameters | {"symmetric": false, "correlation": "mpls"} |
- | description | |
- | flow_classifiers | e9a00308-876f-4212-93ae-92c5c671b58d |
- | id | fb78ce2f-cda3-4f6a-8297-decec84fb375 |
- | name | PC2 |
- | port_pair_groups | e9fa4016-044f-4668-beb5-2f46bf8ca41e |
- | | c5476f8c-2cc0-485b-8688-8f209da93c6f |
- | | 30963955-c0a0-4bc7-9fb6-ba8fa50046f5 |
- | project_id | 6ddeb978c8444171913e4f4247353802 |
- | tenant_id | 6ddeb978c8444171913e4f4247353802 |
- +------------------+---------------------------------------------+
Add Comment
Please, Sign In to add comment