Skip to content

Commit

Permalink
fix: CreateMonitor missing destination
Browse files Browse the repository at this point in the history
  • Loading branch information
Viacheslav Kladov committed Sep 29, 2020
1 parent 4df60bd commit 8d08dca
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion ltm.go
Original file line number Diff line number Diff line change
Expand Up @@ -2427,7 +2427,7 @@ func (b *BigIP) Monitors() ([]Monitor, error) {

// CreateMonitor adds a new monitor to the BIG-IP system. <parent> must be one of "http", "https",
// "icmp", "gateway icmp", or "tcp".
func (b *BigIP) CreateMonitor(name, parent, defaults_from string, interval, timeout int, send, receive, receive_disable, compatibility string) error {
func (b *BigIP) CreateMonitor(name, parent, defaults_from string, interval, timeout int, send, receive, receive_disable, compatibility string, destination string) error {
config := &Monitor{
Name: name,
ParentMonitor: parent,
Expand All @@ -2438,6 +2438,7 @@ func (b *BigIP) CreateMonitor(name, parent, defaults_from string, interval, time
ReceiveString: receive,
ReceiveDisable: receive_disable,
Compatibility: compatibility,
Destination: destination,
}

return b.AddMonitor(config)
Expand Down
5 changes: 3 additions & 2 deletions sys.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ type Volume struct {
Product string `json:"product,omitempty"`
Status string `json:"status,omitempty"`
Version string `json:"version,omitempty"`
Active bool `json:"active,omitempty"`
Media []struct {
Defaultbootlocation bool `json:"defaultBootLocation,omitempty"`
Name string `json:"name,omitempty"`
Expand All @@ -212,7 +213,6 @@ type Images struct {
type Image struct {
Name string `json:"name,omitempty"`
Fullpath string `json:"fullPath,omitempty"`
Basebuild string `json:"basebuild,omitempty"`
Build string `json:"build,omitempty"`
BuildDate string `json:"buildDate,omitempty"`
Checksum string `json:"checksum,omitempty"`
Expand All @@ -229,8 +229,9 @@ type Hotfixes struct {

type Hotfix struct {
Name string `json:"name,omitempty"`
Id string `json:"id,omitempty"`
Title string `json:"title,omitempty"`
Fullpath string `json:"fullPath,omitempty"`
Basebuild string `json:"basebuild,omitempty"`
Build string `json:"build,omitempty"`
BuildDate string `json:"buildDate,omitempty"`
Checksum string `json:"checksum,omitempty"`
Expand Down

0 comments on commit 8d08dca

Please sign in to comment.