Skip to content

Commit e144eac

Browse files
committed
TUN-9171: Use is_default_network instead of is_default to create vnet's
## Summary The is_default field in the request body of the POST /virtual_networks endpoint has been deprecated and should no longer be used. Clients should use the `is_default_network` field instead for setting the default virtual network. Closes TUN-9171
1 parent a62d63d commit e144eac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cfapi/virtual_network.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
type NewVirtualNetwork struct {
1717
Name string `json:"name"`
1818
Comment string `json:"comment"`
19-
IsDefault bool `json:"is_default"`
19+
IsDefault bool `json:"is_default_network"`
2020
}
2121

2222
type VirtualNetwork struct {

0 commit comments

Comments
 (0)