nic added
This commit is contained in:
parent
7d769059db
commit
234fa33134
17
net/nic.go
Normal file
17
net/nic.go
Normal file
|
@ -0,0 +1,17 @@
|
|||
package net
|
||||
|
||||
import (
|
||||
omm "git.loafle.net/overflow/model/meta"
|
||||
)
|
||||
|
||||
type Interface struct {
|
||||
Iface string `json:"iface,omitempty"`
|
||||
Mac string `json:"mac,omitempty"`
|
||||
Addresses []InterfaceAddress `json:"addresses,omitempty"`
|
||||
}
|
||||
|
||||
type InterfaceAddress struct {
|
||||
MetaIPType *omm.MetaIPType `json:"metaIPType,omitempty"`
|
||||
Address string `json:"address,omitempty"`
|
||||
Netmask string `json:"netmask,omitempty"`
|
||||
}
|
Loading…
Reference in New Issue
Block a user