Skip to content

Commit

Permalink
support for Privnet Options.
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Oct 18, 2024
1 parent f86af91 commit e5e8fcb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions cmd/private_network_show.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"bytes"
"errors"
"fmt"
"net"
"os"
"strings"

Expand All @@ -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"`
Expand All @@ -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) }
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e5e8fcb

Please sign in to comment.