51学通信论坛2017新版

标题: VTN集成openstack [打印本页]

作者: admin    时间: 2017-9-17 13:04
标题: VTN集成openstack
[root@opendaylight ~]# curl -u admin:admin http://172.31.2.70:8080/controller/nb/v2/neutron/networks
{
"networks" : [ {
"id" : "aa5ac973-90ed-4c79-a99b-e2976fe7c948",
"name" : "ext",
"admin_state_up" : true,
"shared" : false,
"tenant_id" : "b528a90933ce44548629ed4c2e433799",
"router:external" : true,
"provider:network_type" : "vxlan",
"provider:segmentation_id" : "111",
"status" : "ACTIVE",
"subnets" : [ "f557793a-5c37-4272-b573-2291b988ef1f" ]
}]
[root@opendaylight ~]# curl -u admin:admin http://172.31.2.70:8080/controller/nb/v2/neutron/subnets
{
"subnets" : [ {
"id" : "df3e0e68-e565-4618-a749-90a6a6a533cb",
"network_id" : "eb83537d-74d4-4691-bdea-fe550c04f93f",
"name" : "int",
"ip_version" : 4,
"cidr" : "111.22.33.0/24",
"gateway_ip" : "111.22.33.1",
"dns_nameservers" : ,
"allocation_pools" : [ {
"start" : "111.22.33.2",
"end" : "111.22.33.254"
} ],
"host_routes" : ,
"enable_dhcp" : true,
"tenant_id" : "b528a90933ce44548629ed4c2e433799",
"ipv6_address_mode" : null,
"ipv6_ra_mode" : null
}]
[root@opendaylight ~]# curl -u admin:admin http://172.31.2.70:8080/controller/nb/v2/neutron/ports
{
"ports" : [{
"id" : "14c941fa-161a-4f9b-a9fa-5ee33ecfb76b",
"network_id" : "eb83537d-74d4-4691-bdea-fe550c04f93f",
"name" : "",
"admin_state_up" : true,
"mac_address" : "FA:16:3E:5D:A0:26",
"fixed_ips" : [ {
"ip_address" : "111.22.33.4",
"subnet_id" : "df3e0e68-e565-4618-a749-90a6a6a533cb"
} ],
"device_id" : "bbd79667-a75d-4832-92ea-3db97c41525a",
"device_owner" : "compute:nova",
"tenant_id" : "b528a90933ce44548629ed4c2e433799",
"security_groups" : [ {
"id" : "08541843-6d9a-46e6-a422-61c09f7b6fc1",
"name" : "default",
"description" : "Default security group",
"tenant_id" : "b528a90933ce44548629ed4c2e433799",
"security_group_rules" : [ {
"id" : "1b5ff8c5-3e2c-43a8-9351-6938848dd4f2",
"direction" : "ingress",
"protocol" : "tcp",
"port_range_min" : 12233,
"port_range_max" : 12233,
"ethertype" : "IPv4",
"remote_ip_prefix" : "0.0.0.0/0",
"security_group_id" : "08541843-6d9a-46e6-a422-61c09f7b6fc1",
"tenant_id" : "b528a90933ce44548629ed4c2e433799"
}, {
"id" : "1c89f8db-54d4-491d-93c7-f00d69584c41",
"port_range_min" : 111,
"port_range_max" : 111,
"id" : "31c227b6-46ff-4d1b-ace6-a6782e8f7229",
"direction" : "egress",
"id" : "490fbbb3-db80-498e-9de8-7c4b71ae71bb",
"remote_group_id" : "08541843-6d9a-46e6-a422-61c09f7b6fc1",
"id" : "569f66b9-54a2-48d3-9078-aab993645ffa",
"direction" : "ingress",
"ethertype" : "IPv6",
"id" : "a5c2ca5c-40a7-4fed-8f97-513ea7c2fd8c",
"remote_ip_prefix" : "172.31.2.0/24",
"id" : "d581fb3b-bdca-4528-bf0f-910b2dfe3a50",
} ]
} ],
"allowed_address_pairs" : ,
"binding:host_id" : "sdn-openstack-l",
"binding:vnic_type" : "normal",
"binding:vif_type" : "ovs",
"binding:vif_details" : [ {
"port_filter" : true
} ],
"extra_dhcp_opts" :
}]
声明:本文转载自网络。版权归原作者所有,如有侵权请联系删除。




欢迎光临 51学通信论坛2017新版 (http://bbs.51xuetongxin.com/) Powered by Discuz! X3