Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Creating FloatingIP:
- stack@sd:~$ neutron floatingip-create 3ea9e282-5f07-4442-b00a-0c6700332245
- neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
- Created a new floatingip:
- +---------------------+--------------------------------------+
- | Field | Value |
- +---------------------+--------------------------------------+
- | created_at | 2018-04-20T08:33:23Z |
- | description | |
- | fixed_ip_address | |
- | floating_ip_address | 192.124.0.12 |
- | floating_network_id | 3ea9e282-5f07-4442-b00a-0c6700332245 |
- | id | 96b76ab5-2f7f-4246-8d98-a78335a5a860 |
- | port_id | |
- | project_id | c56e8c7bc8d340b582831cb7510b62ae |
- | revision_number | 0 |
- | router_id | |
- | status | DOWN |
- | tags | |
- | tenant_id | c56e8c7bc8d340b582831cb7510b62ae |
- | updated_at | 2018-04-20T08:33:23Z |
- +---------------------+--------------------------------------+
- Creating Port:
- stack@sd:~$ neutron port-create private12 --fixed-ip subnet_id=38940011-0306-45a8-a5d7-c1ad2fedbb2c,ip_address=10.0.0.11
- neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
- Created a new port:
- +-----------------------+----------------------------------------------------------------------------------+
- | Field | Value |
- +-----------------------+----------------------------------------------------------------------------------+
- | admin_state_up | True |
- | allowed_address_pairs | |
- | binding:host_id | |
- | binding:profile | {} |
- | binding:vif_details | {} |
- | binding:vif_type | unbound |
- | binding:vnic_type | normal |
- | created_at | 2018-04-20T08:35:03Z |
- | description | |
- | device_id | |
- | device_owner | |
- | extra_dhcp_opts | |
- | fixed_ips | {"subnet_id": "38940011-0306-45a8-a5d7-c1ad2fedbb2c", "ip_address": "10.0.0.11"} |
- | id | 388e6f22-8da7-41ef-a7e4-f56fbcacea4f |
- | mac_address | fa:16:3e:a6:04:59 |
- | name | |
- | network_id | a8cc10ab-12a1-48ba-b95d-8b45a6e43767 |
- | port_security_enabled | True |
- | project_id | c56e8c7bc8d340b582831cb7510b62ae |
- | qos_policy_id | |
- | revision_number | 3 |
- | security_groups | 6f128112-255a-4e98-b044-6b3db00361d5 |
- | status | DOWN |
- | tags | |
- | tenant_id | c56e8c7bc8d340b582831cb7510b62ae |
- | updated_at | 2018-04-20T08:35:03Z |
- +-----------------------+----------------------------------------------------------------------------------+
- After attaching fip to port:
- stack@sd:~$ neutron floatingip-show 96b76ab5-2f7f-4246-8d98-a78335a5a860
- neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
- +---------------------+--------------------------------------+
- | Field | Value |
- +---------------------+--------------------------------------+
- | created_at | 2018-04-20T08:33:23Z |
- | description | |
- | fixed_ip_address | 10.0.0.11 |
- | floating_ip_address | 192.124.0.12 |
- | floating_network_id | 3ea9e282-5f07-4442-b00a-0c6700332245 |
- | id | 96b76ab5-2f7f-4246-8d98-a78335a5a860 |
- | port_id | 388e6f22-8da7-41ef-a7e4-f56fbcacea4f |
- | project_id | c56e8c7bc8d340b582831cb7510b62ae |
- | revision_number | 1 |
- | router_id | 4cb49a22-8981-437b-ba6c-6c9a3ac00fa8 |
- | status | ACTIVE |
- | tags | |
- | tenant_id | c56e8c7bc8d340b582831cb7510b62ae |
- | updated_at | 2018-04-20T08:36:02Z |
- +---------------------+--------------------------------------+
- Update Port with other fixed-ips
- stack@sd:~$ neutron port-update 388e6f22-8da7-41ef-a7e4-f56fbcacea4f --fixed-ip subnet_id=38940011-0306-45a8-a5d7-c1ad2fedbb2c,ip_address=10.0.0.12 --fixed-ip p_address=10.0.0.13 --fixed-ip subnet_id=38940011-0306-45a8-a5d7-c1ad2fedbb2c,ip_address=10.0.0.14 --fixed-ip subnet_id=38940011-0306-45a8-a5d7-c1ad2fedbb2c,ip_
- neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
- Updated port: 388e6f22-8da7-41ef-a7e4-f56fbcacea4f
- Port is updated
- stack@sd:~$ neutron port-show 388e6f22-8da7-41ef-a7e4-f56fbcacea4f
- neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
- +-----------------------+----------------------------------------------------------------------------------+
- | Field | Value |
- +-----------------------+----------------------------------------------------------------------------------+
- | admin_state_up | True |
- | allowed_address_pairs | |
- | binding:host_id | |
- | binding:profile | {} |
- | binding:vif_details | {} |
- | binding:vif_type | unbound |
- | binding:vnic_type | normal |
- | created_at | 2018-04-20T08:35:03Z |
- | description | |
- | device_id | |
- | device_owner | |
- | extra_dhcp_opts | |
- | fixed_ips | {"subnet_id": "38940011-0306-45a8-a5d7-c1ad2fedbb2c", "ip_address": "10.0.0.12"} |
- | | {"subnet_id": "38940011-0306-45a8-a5d7-c1ad2fedbb2c", "ip_address": "10.0.0.13"} |
- | | {"subnet_id": "38940011-0306-45a8-a5d7-c1ad2fedbb2c", "ip_address": "10.0.0.14"} |
- | | {"subnet_id": "38940011-0306-45a8-a5d7-c1ad2fedbb2c", "ip_address": "10.0.0.15"} |
- | id | 388e6f22-8da7-41ef-a7e4-f56fbcacea4f |
- | mac_address | fa:16:3e:a6:04:59 |
- | name | |
- | network_id | a8cc10ab-12a1-48ba-b95d-8b45a6e43767 |
- | port_security_enabled | True |
- | project_id | c56e8c7bc8d340b582831cb7510b62ae |
- | qos_policy_id | |
- | revision_number | 8 |
- | security_groups | 6f128112-255a-4e98-b044-6b3db00361d5 |
- | status | DOWN |
- | tags | |
- | tenant_id | c56e8c7bc8d340b582831cb7510b62ae |
- | updated_at | 2018-04-20T08:38:40Z |
- +-----------------------+----------------------------------------------------------------------------------+
- Fip is still attached to the Fixed-ip 10.0.0.11 which doesn't exists anymore:
- stack@sd:~$ neutron floatingip-show 96b76ab5-2f7f-4246-8d98-a78335a5a860
- neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
- +---------------------+--------------------------------------+
- | Field | Value |
- +---------------------+--------------------------------------+
- | created_at | 2018-04-20T08:33:23Z |
- | description | |
- | fixed_ip_address | 10.0.0.11 |
- | floating_ip_address | 192.124.0.12 |
- | floating_network_id | 3ea9e282-5f07-4442-b00a-0c6700332245 |
- | id | 96b76ab5-2f7f-4246-8d98-a78335a5a860 |
- | port_id | 388e6f22-8da7-41ef-a7e4-f56fbcacea4f |
- | project_id | c56e8c7bc8d340b582831cb7510b62ae |
- | revision_number | 1 |
- | router_id | 4cb49a22-8981-437b-ba6c-6c9a3ac00fa8 |
- | status | ACTIVE |
- | tags | |
- | tenant_id | c56e8c7bc8d340b582831cb7510b62ae |
- | updated_at | 2018-04-20T08:36:02Z |
- +---------------------+--------------------------------------+
Advertisement
Add Comment
Please, Sign In to add comment