apache / apache/cloudstack-go

TrafficTypes not handled correctly?

未关闭
#126 4 条评论 0 个 reaction 已指派 1 人 已被 @vishesh92 认领 在 GitHub 查看
主要语言
Go
星标
39
派生
47
PR 合并指标
30 天内没有已合并 PR

描述

I was trying to use the terraform cloudstack provider but was getting hung up with the traffic types. I tracked it back to this library, which uses 'name' for the field instead of 'traffictype'.

What's even more frustrating is that the API documentation is similar. It uses name instead of traffictype.

Here is what I get when I do the request via cloudmonkey, and I confirmed I got the same results from CloudStack python package.
```
{
"count": 4,
"traffictype": [
{
"id": "b20ba0e0-5c8c-4cb7-ab68-8fe3e011a336",
"physicalnetworkid": "ad0e9614-6d9c-41c8-9459-7539673b2107",
"traffictype": "Guest"
},
{
"id": "9f2b4227-653c-4523-b848-4dc889e2c8ff",
"kvmnetworklabel": "cloudbr0",
"physicalnetworkid": "ad0e9614-6d9c-41c8-9459-7539673b2107",
"traffictype": "Management"
},
{
"id": "5de01b4b-1448-4ee6-af4c-529a50966527",
"kvmnetworklabel": "cloudbr0",
"physicalnetworkid": "ad0e9614-6d9c-41c8-9459-7539673b2107",
"traffictype": "Public"
},
{
"id": "52c4901f-467c-414d-9cdd-534a0fb8195e",
"kvmnetworklabel": "cloudbr0",
"physicalnetworkid": "ad0e9614-6d9c-41c8-9459-7539673b2107",
"traffictype": "Storage"
}
]
}
```

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。