Skip to content

Commit a576bea

Browse files
author
Viacheslav Kladov
committed
fix: CreateMonitor missing destination
1 parent 4df60bd commit a576bea

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

ltm.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2427,7 +2427,7 @@ func (b *BigIP) Monitors() ([]Monitor, error) {
24272427

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

24432444
return b.AddMonitor(config)

sys.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ type Volume struct {
197197
Product string `json:"product,omitempty"`
198198
Status string `json:"status,omitempty"`
199199
Version string `json:"version,omitempty"`
200+
Active bool `json:"active,omitempty"`
200201
Media []struct {
201202
Defaultbootlocation bool `json:"defaultBootLocation,omitempty"`
202203
Name string `json:"name,omitempty"`
@@ -212,7 +213,6 @@ type Images struct {
212213
type Image struct {
213214
Name string `json:"name,omitempty"`
214215
Fullpath string `json:"fullPath,omitempty"`
215-
Basebuild string `json:"basebuild,omitempty"`
216216
Build string `json:"build,omitempty"`
217217
BuildDate string `json:"buildDate,omitempty"`
218218
Checksum string `json:"checksum,omitempty"`
@@ -229,8 +229,9 @@ type Hotfixes struct {
229229

230230
type Hotfix struct {
231231
Name string `json:"name,omitempty"`
232+
Id string `json:"id,omitempty"`
233+
Title string `json:"title,omitempty"`
232234
Fullpath string `json:"fullPath,omitempty"`
233-
Basebuild string `json:"basebuild,omitempty"`
234235
Build string `json:"build,omitempty"`
235236
BuildDate string `json:"buildDate,omitempty"`
236237
Checksum string `json:"checksum,omitempty"`

0 commit comments

Comments
 (0)