From 8d08dca2a36ad7030c6f6992fed6ebd03f7a6022 Mon Sep 17 00:00:00 2001 From: Viacheslav Kladov Date: Sat, 26 Sep 2020 17:46:59 +0000 Subject: [PATCH] fix: CreateMonitor missing destination --- ltm.go | 3 ++- sys.go | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ltm.go b/ltm.go index 4679d6f..86b9b8a 100644 --- a/ltm.go +++ b/ltm.go @@ -2427,7 +2427,7 @@ func (b *BigIP) Monitors() ([]Monitor, error) { // CreateMonitor adds a new monitor to the BIG-IP system. 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, @@ -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) diff --git a/sys.go b/sys.go index 08d8fb2..4a8ec61 100644 --- a/sys.go +++ b/sys.go @@ -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"` @@ -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"` @@ -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"`