diff --git a/cmd/private_network_show.go b/cmd/private_network_show.go index 73d9da9a..e8dc5635 100644 --- a/cmd/private_network_show.go +++ b/cmd/private_network_show.go @@ -4,6 +4,7 @@ import ( "bytes" "errors" "fmt" + "net" "os" "strings" @@ -23,6 +24,13 @@ type privateNetworkLeaseOutput struct { IPAddress string `json:"ip_address"` } +type privateNetworkOptions struct { + Routers []net.IP `json:"routers"` + DNSServers []net.IP `json:"dns-servers"` + NTPServers []net.IP `json:"ntp-servers"` + DomainSearch []string `json:"domain-search"` +} + type privateNetworkShowOutput struct { ID string `json:"id"` Name string `json:"name"` @@ -33,6 +41,7 @@ type privateNetworkShowOutput struct { EndIP *string `json:"end_ip,omitempty"` Netmask *string `json:"netmask,omitempty"` Leases []privateNetworkLeaseOutput `json:"leases,omitempty"` + Options privateNetworkOptions `json:"options"` } func (o *privateNetworkShowOutput) ToJSON() { output.JSON(o) } diff --git a/go.mod b/go.mod index 668173c6..53c5f0a4 100644 --- a/go.mod +++ b/go.mod @@ -11,7 +11,7 @@ require ( github.com/aws/smithy-go v1.1.0 github.com/dustin/go-humanize v1.0.1 github.com/exoscale/egoscale v0.102.4 - github.com/exoscale/egoscale/v3 v3.1.7 + github.com/exoscale/egoscale/v3 v3.1.8-0.20241016080528-0a04c8745bca github.com/exoscale/openapi-cli-generator v1.1.0 github.com/fatih/camelcase v1.0.0 github.com/google/uuid v1.4.0