-
Notifications
You must be signed in to change notification settings - Fork 53
update metadata to latest structure #227
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Marques Johansson <[email protected]>
To test this means to run a device and try to read the metada via GetMetadataFromURL? |
@t0mk, yes. Or running This package doesn't seem to be getting much attention or use. I would like to see us use it in #189 so we could self-discover project and organization values for clients like the CCM which are expected to be run from Equinix Metal devices (for the benefit of fewer configuration parameters in cases where it can be detected). I hadn't really looked at |
@displague I'm testing this. I get
For
|
@t0mk I have an internal issue filed against this behavior. |
@@ -108,18 +116,98 @@ func (m BondingMode) String() string { | |||
return fmt.Sprintf("%d", m) | |||
} | |||
|
|||
type PrivateSubnet struct { | |||
// TODO(displague): Discover the fields |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think there's any fields -- right now at least, the private_subnets
field on the metadata is just a list of strings like a.b.c.d/cidr
TODO
prior art (https://github.com/packethost/packetmetadata/blob/master/packetmetadata/packetmetadata.go) (no longer online)