一源一宿,带必经节点

{
    "calculatePolicy": 1,
    "routeCalPolicy": 0,
    "calculateType": 1,
    "calculateMode": 0,
    "bandwidth": 0,
    "leftNeIds": [
        16(控制器上的ID号)
    ],
    "rightNeIds": [
        15
    ],
    
    "workCalConstraint": {
        "explicitIncludeNe": [
            14
       
        ]
        
    }
   
    

}

效果:

{
  "success": true,
  "routeCalResult": [
    {
      "ingressNeId": 16,
      "role": "Master",
      "egressNeId": 15,
      "maxAvailbleBandwidth": 10000,
      "latency": 2,
      "xcs": [
        {
          "neId": 16,
          "egressLtpId": 5
        },
        {
          "neId": 14,
          "ingressLtpId": 5,
          "egressLtpId": 4
        },
        {
          "neId": 15,
          "ingressLtpId": 3
        }
      ],
      "groupNo": 0
    },
    {
      "ingressNeId": 16,
      "role": "Slave",
      "egressNeId": 15,
      "maxAvailbleBandwidth": 10000,
      "latency": 2,
      "xcs": [
        {
          "neId": 16,
          "egressLtpId": 4
        },
        {
          "neId": 17,
          "ingressLtpId": 4,
          "egressLtpId": 5
        },
        {
          "neId": 15,
          "ingressLtpId": 5
        }
      ],
      "groupNo": 0
    }
  ]
}

猜你喜欢

转载自blog.csdn.net/ming1093/article/details/80930641
今日推荐