Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Dec 9, 2025. It is now read-only.

Conversation

@michaelasp
Copy link
Collaborator

@michaelasp michaelasp commented Jun 12, 2025

Add 3 new attributes for the block, subblock and host on gcp machines. Fixes #98

@michaelasp michaelasp requested a review from aojea June 12, 2025 19:37
@michaelasp
Copy link
Collaborator Author

Tested on a GKE cluster, here's an example of a portion of the resource slice.

      name: eth2
    - basic:
        attributes:
          dra.net/alias:
            string: ""
          dra.net/ebpf:
            bool: true
          dra.net/encapsulation:
            string: ether
          dra.net/ifName:
            string: eth3
          dra.net/ipv4:
            string: 10.3.0.2
          dra.net/mac:
            string: 42:01:0a:03:00:02
          dra.net/mtu:
            int: 8244
          dra.net/numaNode:
            int: 0
          dra.net/pciAddressBus:
            string: "08"
          dra.net/pciAddressDevice:
            string: "00"
          dra.net/pciAddressDomain:
            string: "0000"
          dra.net/pciAddressFunction:
            string: "0"
          dra.net/pciVendor:
            string: Google, Inc.
          dra.net/rdma:
            bool: false
          dra.net/sriov:
            bool: false
          dra.net/state:
            string: up
          dra.net/tcxProgramNames:
            string: ""
          dra.net/type:
            string: device
          dra.net/virtual:
            bool: false
          gce.dra.net/block:
            string: 55d44e81984a5f595759b0fe73928a43
          gce.dra.net/host:
            string: 3da07c6f8b95b86629053610342e1507
          gce.dra.net/networkName:
            string: maspinwall-test-dra-net-net-3
          gce.dra.net/networkProjectNumber:
            int: 455207029971
          gce.dra.net/subblock:
            string: f538be2067e35433485f25b82fea0cfe

@michaelasp michaelasp requested a review from aojea June 13, 2025 19:02
@aojea
Copy link
Collaborator

aojea commented Jun 14, 2025

/lgtm

Thanks

@aojea aojea merged commit 975dc8f into google:main Jun 14, 2025
6 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Expose Network Topology as attributes

2 participants