Softlayer API:全局 IP 路由不适用于 ipv6

Softlayer API: Global IP Routing not working with ipv6

我们正在为我们的 ipv4/ipv6 全局 IP 设置自动故障转移。我可以通过执行 get 来设置 ipv4 的路由:

https://api.service.softlayer.com/rest/v3/SoftLayer_Network_Subnet_IpAddress_Global/xxxx/route/111.111.111.111/

但是当我尝试 ipv6 时: https://api.service.softlayer.com/rest/v3/SoftLayer_Network_Subnet_IpAddress_Global/xxxx/route/2607:f0d0:1e01:1a2::3/

我收到此错误:

{
   "error": "The selected destination IP address is currently not in tracking for subnet '2607:f0d0:0003:0023:0000:0000:0000:0000/64'.",
   "code": "SoftLayer_Exception_Public"
}

您需要发送没有压缩的EndPointIpAddress(没有压缩形式),所以您应该这样发送:

https://api.service.softlayer.com/rest/v3/SoftLayer_Network_Subnet_IpAddress_Global/xxxx/route/2607:f0d0:1e01:01a2:0000:0000:0000:0003

参考文献: