创建tunnel的全新理解

先创建隧道,然后在隧道上创建业务,要理清此思路。


在postmhttp://172.16.110.18:60131/restconf/operations/raisecom-tunnel:create-tunnelan的四大场景中:这四处可以创建隧道

                                              183-185b之间lspvlan1

                                               183-185b之间lspvlan2

                                               183-88之间lspvlan1

                                                183-88之间lspvlan2

{
    "input": {
        "id": "31",
        "name": "31",
        "user-label": "31",
        "direction": "bidirection",
        "tunnel-type": "linearMPLS",
        "source-ne-id": "openflow:112777252306944",
        "destination-ne-id": "openflow:4044003901243392",
        "source-ip": "10.0.51.39",
        "destination-ip": "10.0.51.42",
        "lsp": [
            {
                "id": "31",
                "name": "31",
                "user-label": "31",
                "direction": "bidirection",
                "lsp-role": "master",
                "lsp-type": "pepe",
                "ingress-ne-id": "openflow:112777252306944",
                "egress-ne-id": "openflow:4044003901243392",
                "admin-status": "admin-up",
                "operate-status": "operate-up",
                "route": [
                    {
                        "id": "31",
                        "name": "31",
                        "layer-rate": "lsp",
                        "snc-id": "31",
                        "xc": [
                            {
                                "ne-id": "openflow:112777252306944",
                                "ingress-ltp-id": "5",(主要是指从设备的哪个端口发出的)
                                "egress-ltp-id": "4",(同上)以上两个值要通过:拓扑—链路列表,查出,在根据:资产—端口:所有端口,立案查出其对应的具体是哪个端口号
                                "forward-peer-id": "10.0.51.42",(两台设备这个写对方,或者理解为目的的ip)
                                "forward-out-label": "1996",
                                "backward-in-label": "1996",
                                "ingress-vlan": "100",
                                "egress-vlan": "100"
                            },
                            {
                                "ne-id": "openflow:4044003901243392",
                                "ingress-ltp-id": "4",
                                "backward-peer-id": "10.0.51.39",
                                "egress-ltp-id": "5",
                                "forward-in-label": "1996",
                                "backward-out-label": "1996",
                                "ingress-vlan": "100",
                                "egress-vlan": "100"(此栏中的内容,与上栏中的填写方式一致,最易错点是 ne-id与backward-peer-id(forward-peer-id)的填写)
                            }
                        ]
                    }
                ]
            }
        ],
        "operate-status": "operate-up"
    }

}

结果:

{
  "output": {
    "error-message": "add success",
    "error-code": "200"
  }

}

总结:"input"中的: 
        "id": "31",
        "name": "31",

        "user-label": "31"

这三个值可以随意定义,就好比是起个名字

         "source-ne-id": "openflow:112777252306944",
        "destination-ne-id": "openflow:4044003901243392",
        "source-ip": "10.0.51.39",

        "destination-ip": "10.0.51.42",

这四条消息的值,source(destination) ne-id是指某个域的起始(终止)节点,主要是通过数据库Heid SQL中查询,在res_ne—数据—hostname下查看;source ip(destination ip)主要指源或目的ip的值


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值