51学通信论坛2017新版

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 1280|回复: 0
打印 上一主题 下一主题

VTN集成openstack

[复制链接]

 成长值: 15613

  • TA的每日心情
    开心
    2022-7-17 17:50
  • 2444

    主题

    2544

    帖子

    7万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

    积分
    74104
    跳转到指定楼层
    楼主
    发表于 2017-9-17 13:04:02 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
    [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学通信微信公众号,获取更多精彩通信课程分享。
    回复

    使用道具 举报

    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    Archiver|手机版|小黑屋|51学通信技术论坛

    GMT+8, 2025-1-31 16:54 , Processed in 0.069972 second(s), 31 queries .

    Powered by Discuz! X3

    © 2001-2013 Comsenz Inc.

    快速回复 返回顶部 返回列表