[PR #37] [CLOSED] feature: VM's network configuration info's #93

Closed
opened 2026-03-03 15:30:10 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/luthermonson/go-proxmox/pull/37
Author: @zekiahmetbayar
Created: 9/19/2022
Status: Closed

Base: mainHead: main


📝 Commits (3)

  • a552cda feature: VM's network configuration info's
  • 6ee5c48 chore: Updated go version
  • ef275d3 fix: Changed module name

📊 Changes

3 files changed (+61 additions, -22 deletions)

View changed files

📝 go.mod (+8 -1)
📝 nodes.go (+5 -0)
📝 types.go (+48 -21)

📄 Description

Added vm's network configuration info's

Sample JSON:

{
  "data": {
    "result": [
      {
        "statistics": {
          "rx-packets": 185,
          "tx-errs": 0,
          "tx-dropped": 0,
          "rx-bytes": 15957,
          "tx-packets": 185,
          "rx-errs": 0,
          "rx-dropped": 0,
          "tx-bytes": 15957
        },
        "ip-addresses": [
          {
            "prefix": 8,
            "ip-address-type": "ipv4",
            "ip-address": "127.0.0.1"
          },
          {
            "ip-address": "::1",
            "prefix": 128,
            "ip-address-type": "ipv6"
          }
        ],
        "name": "lo",
        "hardware-address": "00:00:00:00:00:00"
      },
      {
        "statistics": {
          "tx-packets": 4479,
          "tx-bytes": 241887,
          "rx-dropped": 2429,
          "rx-errs": 0,
          "rx-packets": 26597,
          "rx-bytes": 3296527,
          "tx-dropped": 0,
          "tx-errs": 0
        },
        "ip-addresses": [
          {
            "prefix": 99,
            "ip-address-type": "ipv4",
            "ip-address": "10.1.1.1"
          },
          {
            "ip-address-type": "ipv6",
            "prefix": 64,
            "ip-address": "eeee::cccc:bbbb:aaaa:xxxx"
          }
        ],
        "hardware-address": "11:11:11:sx:11:11",
        "name": "eth0"
      }
    ]
  }
}

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/luthermonson/go-proxmox/pull/37 **Author:** [@zekiahmetbayar](https://github.com/zekiahmetbayar) **Created:** 9/19/2022 **Status:** ❌ Closed **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (3) - [`a552cda`](https://github.com/luthermonson/go-proxmox/commit/a552cda0481a08ff2a094d8e8ee1ddde9b409e17) feature: VM's network configuration info's - [`6ee5c48`](https://github.com/luthermonson/go-proxmox/commit/6ee5c4803ead539816517c140290bc0ddce41e52) chore: Updated go version - [`ef275d3`](https://github.com/luthermonson/go-proxmox/commit/ef275d337d9732b677a7b7ae9a2499ee942b15fc) fix: Changed module name ### 📊 Changes **3 files changed** (+61 additions, -22 deletions) <details> <summary>View changed files</summary> 📝 `go.mod` (+8 -1) 📝 `nodes.go` (+5 -0) 📝 `types.go` (+48 -21) </details> ### 📄 Description Added vm's network configuration info's Sample JSON: ``` { "data": { "result": [ { "statistics": { "rx-packets": 185, "tx-errs": 0, "tx-dropped": 0, "rx-bytes": 15957, "tx-packets": 185, "rx-errs": 0, "rx-dropped": 0, "tx-bytes": 15957 }, "ip-addresses": [ { "prefix": 8, "ip-address-type": "ipv4", "ip-address": "127.0.0.1" }, { "ip-address": "::1", "prefix": 128, "ip-address-type": "ipv6" } ], "name": "lo", "hardware-address": "00:00:00:00:00:00" }, { "statistics": { "tx-packets": 4479, "tx-bytes": 241887, "rx-dropped": 2429, "rx-errs": 0, "rx-packets": 26597, "rx-bytes": 3296527, "tx-dropped": 0, "tx-errs": 0 }, "ip-addresses": [ { "prefix": 99, "ip-address-type": "ipv4", "ip-address": "10.1.1.1" }, { "ip-address-type": "ipv6", "prefix": 64, "ip-address": "eeee::cccc:bbbb:aaaa:xxxx" } ], "hardware-address": "11:11:11:sx:11:11", "name": "eth0" } ] } } ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 15:30:10 +03:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/go-proxmox#93
No description provided.