Documentation
¶
Index ¶
- func ExtractBGPVPNsInto(r pagination.Page, v interface{}) error
- func ExtractNetworkAssociationsInto(r pagination.Page, v interface{}) error
- func ExtractPortAssociationsInto(r pagination.Page, v interface{}) error
- func ExtractRouterAssociationsInto(r pagination.Page, v interface{}) error
- func List(c *gophercloud.ServiceClient, opts ListOptsBuilder) pagination.Pager
- func ListNetworkAssociations(c *gophercloud.ServiceClient, id string, ...) pagination.Pager
- func ListPortAssociations(c *gophercloud.ServiceClient, id string, opts ListPortAssociationsOptsBuilder) pagination.Pager
- func ListRouterAssociations(c *gophercloud.ServiceClient, id string, ...) pagination.Pager
- type BGPVPN
- type BGPVPNPage
- type CreateNetworkAssociationOpts
- type CreateNetworkAssociationOptsBuilder
- type CreateNetworkAssociationResult
- type CreateOpts
- type CreateOptsBuilder
- type CreatePortAssociationOpts
- type CreatePortAssociationOptsBuilder
- type CreatePortAssociationResult
- type CreateResult
- type CreateRouterAssociationOpts
- type CreateRouterAssociationOptsBuilder
- type CreateRouterAssociationResult
- type DeleteNetworkAssociationResult
- type DeletePortAssociationResult
- type DeleteResult
- type DeleteRouterAssociationResult
- type GetNetworkAssociationResult
- type GetPortAssociationResult
- type GetResult
- type GetRouterAssociationResult
- type ListNetworkAssociationsOpts
- type ListNetworkAssociationsOptsBuilder
- type ListOpts
- type ListOptsBuilder
- type ListPortAssociationsOpts
- type ListPortAssociationsOptsBuilder
- type ListRouterAssociationsOpts
- type ListRouterAssociationsOptsBuilder
- type NetworkAssociation
- type NetworkAssociationPage
- type PortAssociation
- type PortAssociationPage
- type PortRoutes
- type RouterAssociation
- type RouterAssociationPage
- type UpdateOpts
- type UpdateOptsBuilder
- type UpdatePortAssociationOpts
- type UpdatePortAssociationOptsBuilder
- type UpdatePortAssociationResult
- type UpdateResult
- type UpdateRouterAssociationOpts
- type UpdateRouterAssociationOptsBuilder
- type UpdateRouterAssociationResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractBGPVPNsInto ¶
func ExtractBGPVPNsInto(r pagination.Page, v interface{}) error
func ExtractNetworkAssociationsInto ¶
func ExtractNetworkAssociationsInto(r pagination.Page, v interface{}) error
func ExtractPortAssociationsInto ¶
func ExtractPortAssociationsInto(r pagination.Page, v interface{}) error
func ExtractRouterAssociationsInto ¶
func ExtractRouterAssociationsInto(r pagination.Page, v interface{}) error
func List ¶
func List(c *gophercloud.ServiceClient, opts ListOptsBuilder) pagination.Pager
List the BGP VPNs
func ListNetworkAssociations ¶
func ListNetworkAssociations(c *gophercloud.ServiceClient, id string, opts ListNetworkAssociationsOptsBuilder) pagination.Pager
ListNetworkAssociations pages over the network associations of a specified BGP VPN.
func ListPortAssociations ¶
func ListPortAssociations(c *gophercloud.ServiceClient, id string, opts ListPortAssociationsOptsBuilder) pagination.Pager
ListPortAssociations pages over the port associations of a specified BGP VPN.
func ListRouterAssociations ¶
func ListRouterAssociations(c *gophercloud.ServiceClient, id string, opts ListRouterAssociationsOptsBuilder) pagination.Pager
ListRouterAssociations pages over the router associations of a specified BGP VPN.
Types ¶
type BGPVPN ¶
type BGPVPN struct { // The ID of the BGP VPN. ID string `json:"id"` // The user meaningful name of the BGP VPN. Name string `json:"name"` // Selection of the type of VPN and the technology behind it. Allowed // values are l2 or l3. Type string `json:"type"` Shared bool `json:"shared"` // List of route distinguisher strings. If this parameter is specified, // one of these RDs will be used to advertise VPN routes. RouteDistinguishers []string `json:"route_distinguishers"` // Route Targets that will be both imported and used for export. RouteTargets []string `json:"route_targets"` // Additional Route Targets that will be imported. ImportTargets []string `json:"import_targets"` // Additional Route Targets that will be used for export. ExportTargets []string `json:"export_targets"` // This read-only list of network IDs reflects the associations defined // by Network association API resources. Networks []string `json:"networks"` // This read-only list of router IDs reflects the associations defined // by Router association API resources. Routers []string `json:"routers"` // This read-only list of port IDs reflects the associations defined by // Port association API resources (only present if the // bgpvpn-routes-control API extension is enabled). Ports []string `json:"ports"` // The default BGP LOCAL_PREF of routes that will be advertised to the // BGPVPN (unless overridden per-route). LocalPref *int `json:"local_pref"` // The globally-assigned VXLAN vni for the BGP VPN. VNI int `json:"vni"` // The ID of the project. TenantID string `json:"tenant_id"` // The ID of the project. ProjectID string `json:"project_id"` }
BGPVPN represents an MPLS network with which Neutron routers and/or networks may be associated
func ExtractBGPVPNs ¶
func ExtractBGPVPNs(r pagination.Page) ([]BGPVPN, error)
ExtractBGPVPNs accepts a Page struct, specifically a BGPVPNPage struct, and extracts the elements into a slice of BGPVPN structs. In other words, a generic collection is mapped into a relevant slice.
type BGPVPNPage ¶
type BGPVPNPage struct {
pagination.MarkerPageBase
}
BGPVPNPage is the page returned by a pager when traversing over a collection of BGP VPNs.
func (BGPVPNPage) IsEmpty ¶
func (r BGPVPNPage) IsEmpty() (bool, error)
IsEmpty checks whether a BGPPage struct is empty.
func (BGPVPNPage) LastMarker ¶
func (r BGPVPNPage) LastMarker() (string, error)
LastMarker returns the last offset in a ListResult.
func (BGPVPNPage) NextPageURL ¶
func (r BGPVPNPage) NextPageURL() (string, error)
NextPageURL generates the URL for the page of results after this one.
type CreateNetworkAssociationOpts ¶
type CreateNetworkAssociationOpts struct { NetworkID string `json:"network_id" required:"true"` TenantID string `json:"tenant_id,omitempty"` ProjectID string `json:"project_id,omitempty"` }
CreateNetworkAssociationOpts represents options used to create a BGP VPN network association.
func (CreateNetworkAssociationOpts) ToNetworkAssociationCreateMap ¶
func (opts CreateNetworkAssociationOpts) ToNetworkAssociationCreateMap() (map[string]interface{}, error)
ToNetworkAssociationCreateMap builds a request body from CreateNetworkAssociationOpts.
type CreateNetworkAssociationOptsBuilder ¶
type CreateNetworkAssociationOptsBuilder interface {
ToNetworkAssociationCreateMap() (map[string]interface{}, error)
}
CreateNetworkAssociationOptsBuilder allows extensions to add additional parameters to the CreateNetworkAssociation request.
type CreateNetworkAssociationResult ¶
type CreateNetworkAssociationResult struct {
// contains filtered or unexported fields
}
CreateNetworkAssociationResult represents the result of a create operation. Call its Extract method to interpret it as a NetworkAssociation.
func CreateNetworkAssociation ¶
func CreateNetworkAssociation(client *gophercloud.ServiceClient, id string, opts CreateNetworkAssociationOptsBuilder) (r CreateNetworkAssociationResult)
CreateNetworkAssociation creates a new network association for a specified BGP VPN.
func (CreateNetworkAssociationResult) Extract ¶
func (r CreateNetworkAssociationResult) Extract() (*NetworkAssociation, error)
Extract is a function that accepts a result and extracts a BGP VPN resource.
func (CreateNetworkAssociationResult) ExtractInto ¶
func (r CreateNetworkAssociationResult) ExtractInto(v interface{}) error
type CreateOpts ¶
type CreateOpts struct { Name string `json:"name,omitempty"` RouteDistinguishers []string `json:"route_distinguishers,omitempty"` RouteTargets []string `json:"route_targets,omitempty"` ImportTargets []string `json:"import_targets,omitempty"` ExportTargets []string `json:"export_targets,omitempty"` LocalPref int `json:"local_pref,omitempty"` VNI int `json:"vni,omitempty"` TenantID string `json:"tenant_id,omitempty"` ProjectID string `json:"project_id,omitempty"` Type string `json:"type,omitempty"` }
CreateOpts represents options used to create a BGP VPN.
func (CreateOpts) ToBGPVPNCreateMap ¶
func (opts CreateOpts) ToBGPVPNCreateMap() (map[string]interface{}, error)
ToBGPVPNCreateMap builds a request body from CreateOpts.
type CreateOptsBuilder ¶
CreateOptsBuilder allows extensions to add additional parameters to the Create request.
type CreatePortAssociationOpts ¶
type CreatePortAssociationOpts struct { PortID string `json:"port_id" required:"true"` Routes []PortRoutes `json:"routes,omitempty"` AdvertiseFixedIPs *bool `json:"advertise_fixed_ips,omitempty"` TenantID string `json:"tenant_id,omitempty"` ProjectID string `json:"project_id,omitempty"` }
CreatePortAssociationOpts represents options used to create a BGP VPN port association.
func (CreatePortAssociationOpts) ToPortAssociationCreateMap ¶
func (opts CreatePortAssociationOpts) ToPortAssociationCreateMap() (map[string]interface{}, error)
ToPortAssociationCreateMap builds a request body from CreatePortAssociationOpts.
type CreatePortAssociationOptsBuilder ¶
type CreatePortAssociationOptsBuilder interface {
ToPortAssociationCreateMap() (map[string]interface{}, error)
}
CreatePortAssociationOptsBuilder allows extensions to add additional parameters to the CreatePortAssociation request.
type CreatePortAssociationResult ¶
type CreatePortAssociationResult struct {
// contains filtered or unexported fields
}
CreatePortAssociationResult represents the result of a create operation. Call its Extract method to interpret it as a PortAssociation.
func CreatePortAssociation ¶
func CreatePortAssociation(client *gophercloud.ServiceClient, id string, opts CreatePortAssociationOptsBuilder) (r CreatePortAssociationResult)
CreatePortAssociation creates a new port association for a specified BGP VPN.
func (CreatePortAssociationResult) Extract ¶
func (r CreatePortAssociationResult) Extract() (*PortAssociation, error)
Extract is a function that accepts a result and extracts a BGP VPN resource.
func (CreatePortAssociationResult) ExtractInto ¶
func (r CreatePortAssociationResult) ExtractInto(v interface{}) error
type CreateResult ¶
type CreateResult struct {
// contains filtered or unexported fields
}
CreateResult represents the result of a create operation. Call its Extract method to intepret it as a BGPVPN.
func Create ¶
func Create(c *gophercloud.ServiceClient, opts CreateOpts) (r CreateResult)
Create a BGP VPN
func (CreateResult) Extract ¶
Extract is a function that accepts a result and extracts a BGP VPN resource.
func (CreateResult) ExtractInto ¶
func (r CreateResult) ExtractInto(v interface{}) error
type CreateRouterAssociationOpts ¶
type CreateRouterAssociationOpts struct { RouterID string `json:"router_id" required:"true"` AdvertiseExtraRoutes *bool `json:"advertise_extra_routes,omitempty"` TenantID string `json:"tenant_id,omitempty"` ProjectID string `json:"project_id,omitempty"` }
CreateRouterAssociationOpts represents options used to create a BGP VPN router association.
func (CreateRouterAssociationOpts) ToRouterAssociationCreateMap ¶
func (opts CreateRouterAssociationOpts) ToRouterAssociationCreateMap() (map[string]interface{}, error)
ToRouterAssociationCreateMap builds a request body from CreateRouterAssociationOpts.
type CreateRouterAssociationOptsBuilder ¶
type CreateRouterAssociationOptsBuilder interface {
ToRouterAssociationCreateMap() (map[string]interface{}, error)
}
CreateRouterAssociationOptsBuilder allows extensions to add additional parameters to the CreateRouterAssociation request.
type CreateRouterAssociationResult ¶
type CreateRouterAssociationResult struct {
// contains filtered or unexported fields
}
CreateRouterAssociationResult represents the result of a create operation. Call its Extract method to interpret it as a RouterAssociation.
func CreateRouterAssociation ¶
func CreateRouterAssociation(client *gophercloud.ServiceClient, id string, opts CreateRouterAssociationOptsBuilder) (r CreateRouterAssociationResult)
CreateRouterAssociation creates a new router association for a specified BGP VPN.
func (CreateRouterAssociationResult) Extract ¶
func (r CreateRouterAssociationResult) Extract() (*RouterAssociation, error)
Extract is a function that accepts a result and extracts a BGP VPN resource.
func (CreateRouterAssociationResult) ExtractInto ¶
func (r CreateRouterAssociationResult) ExtractInto(v interface{}) error
type DeleteNetworkAssociationResult ¶
type DeleteNetworkAssociationResult struct {
gophercloud.ErrResult
}
DeleteNetworkAssociationResult represents the result of a delete operation. Call its ExtractErr method to determine if the request succeeded or failed.
func DeleteNetworkAssociation ¶
func DeleteNetworkAssociation(c *gophercloud.ServiceClient, bgpVpnID string, id string) (r DeleteNetworkAssociationResult)
DeleteNetworkAssociation deletes a specific network association by BGP VPN id and network association id.
type DeletePortAssociationResult ¶
type DeletePortAssociationResult struct {
gophercloud.ErrResult
}
DeletePortAssociationResult represents the result of a delete operation. Call its ExtractErr method to determine if the request succeeded or failed.
func DeletePortAssociation ¶
func DeletePortAssociation(c *gophercloud.ServiceClient, bgpVpnID string, id string) (r DeletePortAssociationResult)
DeletePortAssociation deletes a specific port association by BGP VPN id and port association id.
type DeleteResult ¶
type DeleteResult struct {
gophercloud.ErrResult
}
DeleteResult represents the result of a delete operation. Call its ExtractErr method to determine if the request succeeded or failed.
func Delete ¶
func Delete(c *gophercloud.ServiceClient, id string) (r DeleteResult)
Delete accepts a unique ID and deletes the BGP VPN associated with it.
type DeleteRouterAssociationResult ¶
type DeleteRouterAssociationResult struct {
gophercloud.ErrResult
}
DeleteRouterAssociationResult represents the result of a delete operation. Call its ExtractErr method to determine if the request succeeded or failed.
func DeleteRouterAssociation ¶
func DeleteRouterAssociation(c *gophercloud.ServiceClient, bgpVpnID string, id string) (r DeleteRouterAssociationResult)
DeleteRouterAssociation deletes a specific router association by BGP VPN id and router association id.
type GetNetworkAssociationResult ¶
type GetNetworkAssociationResult struct {
// contains filtered or unexported fields
}
GetNetworkAssociationResult represents the result of a get operation. Call its Extract method to interpret it as a NetworkAssociation.
func GetNetworkAssociation ¶
func GetNetworkAssociation(c *gophercloud.ServiceClient, bgpVpnID string, id string) (r GetNetworkAssociationResult)
GetNetworkAssociation retrieves a specific network association by BGP VPN id and network association id.
func (GetNetworkAssociationResult) Extract ¶
func (r GetNetworkAssociationResult) Extract() (*NetworkAssociation, error)
Extract is a function that accepts a result and extracts a BGP VPN resource.
func (GetNetworkAssociationResult) ExtractInto ¶
func (r GetNetworkAssociationResult) ExtractInto(v interface{}) error
type GetPortAssociationResult ¶
type GetPortAssociationResult struct {
// contains filtered or unexported fields
}
GetPortAssociationResult represents the result of a get operation. Call its Extract method to interpret it as a PortAssociation.
func GetPortAssociation ¶
func GetPortAssociation(c *gophercloud.ServiceClient, bgpVpnID string, id string) (r GetPortAssociationResult)
GetPortAssociation retrieves a specific port association by BGP VPN id and port association id.
func (GetPortAssociationResult) Extract ¶
func (r GetPortAssociationResult) Extract() (*PortAssociation, error)
Extract is a function that accepts a result and extracts a BGP VPN resource.
func (GetPortAssociationResult) ExtractInto ¶
func (r GetPortAssociationResult) ExtractInto(v interface{}) error
type GetResult ¶
type GetResult struct {
// contains filtered or unexported fields
}
GetResult represents the result of a get operation. Call its Extract method to interpret it as a BGPVPN.
func Get ¶
func Get(c *gophercloud.ServiceClient, id string) (r GetResult)
Get retrieve the specific BGP VPN by its uuid
func (GetResult) Extract ¶
Extract is a function that accepts a result and extracts a BGP VPN resource.
func (GetResult) ExtractInto ¶
func (r GetResult) ExtractInto(v interface{}) error
type GetRouterAssociationResult ¶
type GetRouterAssociationResult struct {
// contains filtered or unexported fields
}
GetRouterAssociationResult represents the result of a get operation. Call its Extract method to interpret it as a RouterAssociation.
func GetRouterAssociation ¶
func GetRouterAssociation(c *gophercloud.ServiceClient, bgpVpnID string, id string) (r GetRouterAssociationResult)
GetRouterAssociation retrieves a specific router association by BGP VPN id and router association id.
func (GetRouterAssociationResult) Extract ¶
func (r GetRouterAssociationResult) Extract() (*RouterAssociation, error)
Extract is a function that accepts a result and extracts a BGP VPN resource.
func (GetRouterAssociationResult) ExtractInto ¶
func (r GetRouterAssociationResult) ExtractInto(v interface{}) error
type ListNetworkAssociationsOpts ¶
type ListNetworkAssociationsOpts struct { Fields []string `q:"fields"` Limit int `q:"limit"` Marker string `q:"marker"` }
ListNetworkAssociationsOpts allows the filtering and sorting of paginated collections through the API.
func (ListNetworkAssociationsOpts) ToNetworkAssociationsListQuery ¶
func (opts ListNetworkAssociationsOpts) ToNetworkAssociationsListQuery() (string, error)
ToNetworkAssociationsListQuery formats a ListNetworkAssociationsOpts into a query string.
type ListNetworkAssociationsOptsBuilder ¶
type ListNetworkAssociationsOptsBuilder interface {
ToNetworkAssociationsListQuery() (string, error)
}
ListNetworkAssociationsOptsBuilder allows extensions to add additional parameters to the ListNetworkAssociations request.
type ListOpts ¶
type ListOpts struct { Fields []string `q:"fields"` ProjectID string `q:"project_id"` Networks []string `q:"networks"` Routers []string `q:"routers"` Ports []string `q:"ports"` Limit int `q:"limit"` Marker string `q:"marker"` }
ListOpts allows the filtering and sorting of paginated collections through the API.
func (ListOpts) ToBGPVPNListQuery ¶
ToBGPVPNListQuery formats a ListOpts into a query string.
type ListOptsBuilder ¶
ListOptsBuilder allows extensions to add additional parameters to the List request.
type ListPortAssociationsOpts ¶
type ListPortAssociationsOpts struct { Fields []string `q:"fields"` Limit int `q:"limit"` Marker string `q:"marker"` }
ListPortAssociationsOpts allows the filtering and sorting of paginated collections through the API.
func (ListPortAssociationsOpts) ToPortAssociationsListQuery ¶
func (opts ListPortAssociationsOpts) ToPortAssociationsListQuery() (string, error)
ToPortAssociationsListQuery formats a ListPortAssociationsOpts into a query string.
type ListPortAssociationsOptsBuilder ¶
ListPortAssociationsOptsBuilder allows extensions to add additional parameters to the ListPortAssociations request.
type ListRouterAssociationsOpts ¶
type ListRouterAssociationsOpts struct { Fields []string `q:"fields"` Limit int `q:"limit"` Marker string `q:"marker"` }
ListRouterAssociationsOpts allows the filtering and sorting of paginated collections through the API.
func (ListRouterAssociationsOpts) ToRouterAssociationsListQuery ¶
func (opts ListRouterAssociationsOpts) ToRouterAssociationsListQuery() (string, error)
ToRouterAssociationsListQuery formats a ListRouterAssociationsOpts into a query string.
type ListRouterAssociationsOptsBuilder ¶
type ListRouterAssociationsOptsBuilder interface {
ToRouterAssociationsListQuery() (string, error)
}
ListRouterAssociationsOptsBuilder allows extensions to add additional parameters to the ListRouterAssociations request.
type NetworkAssociation ¶
type NetworkAssociation struct { ID string `json:"id"` NetworkID string `json:"network_id"` TenantID string `json:"tenant_id"` ProjectID string `json:"project_id"` }
NetworkAssociation represents a BGP VPN network association object.
func ExtractNetworkAssociations ¶
func ExtractNetworkAssociations(r pagination.Page) ([]NetworkAssociation, error)
ExtractNetworkAssociations accepts a Page struct, specifically a NetworkAssociationPage struct, and extracts the elements into a slice of NetworkAssociation structs. In other words, a generic collection is mapped into a relevant slice.
type NetworkAssociationPage ¶
type NetworkAssociationPage struct {
pagination.MarkerPageBase
}
NetworkAssociationPage is the page returned by a pager when traversing over a collection of network associations.
func (NetworkAssociationPage) IsEmpty ¶
func (r NetworkAssociationPage) IsEmpty() (bool, error)
IsEmpty checks whether a NetworkAssociationPage struct is empty.
func (NetworkAssociationPage) LastMarker ¶
func (r NetworkAssociationPage) LastMarker() (string, error)
LastMarker returns the last offset in a ListResult.
func (NetworkAssociationPage) NextPageURL ¶
func (r NetworkAssociationPage) NextPageURL() (string, error)
NextPageURL generates the URL for the page of results after this one.
type PortAssociation ¶
type PortAssociation struct { ID string `json:"id"` PortID string `json:"port_id"` TenantID string `json:"tenant_id"` ProjectID string `json:"project_id"` Routes []PortRoutes `json:"routes"` AdvertiseFixedIPs bool `json:"advertise_fixed_ips"` }
PortAssociation represents a BGP VPN port association object.
func ExtractPortAssociations ¶
func ExtractPortAssociations(r pagination.Page) ([]PortAssociation, error)
ExtractPortAssociations accepts a Page struct, specifically a PortAssociationPage struct, and extracts the elements into a slice of PortAssociation structs. In other words, a generic collection is mapped into a relevant slice.
type PortAssociationPage ¶
type PortAssociationPage struct {
pagination.MarkerPageBase
}
PortAssociationPage is the page returned by a pager when traversing over a collection of port associations.
func (PortAssociationPage) IsEmpty ¶
func (r PortAssociationPage) IsEmpty() (bool, error)
IsEmpty checks whether a PortAssociationPage struct is empty.
func (PortAssociationPage) LastMarker ¶
func (r PortAssociationPage) LastMarker() (string, error)
LastMarker returns the last offset in a ListResult.
func (PortAssociationPage) NextPageURL ¶
func (r PortAssociationPage) NextPageURL() (string, error)
NextPageURL generates the URL for the page of results after this one.
type PortRoutes ¶
type PortRoutes struct { Type string `json:"type" required:"true"` Prefix string `json:"prefix,omitempty"` BGPVPNID string `json:"bgpvpn_id,omitempty"` LocalPref *int `json:"local_pref,omitempty"` }
PortRoutes represents the routes to be advertised by a BGP VPN port
type RouterAssociation ¶
type RouterAssociation struct { ID string `json:"id"` RouterID string `json:"router_id"` TenantID string `json:"tenant_id"` ProjectID string `json:"project_id"` AdvertiseExtraRoutes bool `json:"advertise_extra_routes"` }
RouterAssociation represents a BGP VPN router association object.
func ExtractRouterAssociations ¶
func ExtractRouterAssociations(r pagination.Page) ([]RouterAssociation, error)
ExtractRouterAssociations accepts a Page struct, specifically a RouterAssociationPage struct, and extracts the elements into a slice of RouterAssociation structs. In other words, a generic collection is mapped into a relevant slice.
type RouterAssociationPage ¶
type RouterAssociationPage struct {
pagination.MarkerPageBase
}
RouterAssociationPage is the page returned by a pager when traversing over a collection of router associations.
func (RouterAssociationPage) IsEmpty ¶
func (r RouterAssociationPage) IsEmpty() (bool, error)
IsEmpty checks whether a RouterAssociationPage struct is empty.
func (RouterAssociationPage) LastMarker ¶
func (r RouterAssociationPage) LastMarker() (string, error)
LastMarker returns the last offset in a ListResult.
func (RouterAssociationPage) NextPageURL ¶
func (r RouterAssociationPage) NextPageURL() (string, error)
NextPageURL generates the URL for the page of results after this one.
type UpdateOpts ¶
type UpdateOpts struct { Name *string `json:"name,omitempty"` RouteDistinguishers *[]string `json:"route_distinguishers,omitempty"` RouteTargets *[]string `json:"route_targets,omitempty"` ImportTargets *[]string `json:"import_targets,omitempty"` ExportTargets *[]string `json:"export_targets,omitempty"` LocalPref *int `json:"local_pref,omitempty"` }
UpdateOpts represents options used to update a BGP VPN.
func (UpdateOpts) ToBGPVPNUpdateMap ¶
func (opts UpdateOpts) ToBGPVPNUpdateMap() (map[string]interface{}, error)
ToBGPVPNUpdateMap builds a request body from UpdateOpts.
type UpdateOptsBuilder ¶
UpdateOptsBuilder allows extensions to add additional parameters to the Update request.
type UpdatePortAssociationOpts ¶
type UpdatePortAssociationOpts struct { Routes *[]PortRoutes `json:"routes,omitempty"` AdvertiseFixedIPs *bool `json:"advertise_fixed_ips,omitempty"` }
UpdatePortAssociationOpts represents options used to update a BGP VPN port association.
func (UpdatePortAssociationOpts) ToPortAssociationUpdateMap ¶
func (opts UpdatePortAssociationOpts) ToPortAssociationUpdateMap() (map[string]interface{}, error)
ToPortAssociationUpdateMap builds a request body from UpdatePortAssociationOpts.
type UpdatePortAssociationOptsBuilder ¶
type UpdatePortAssociationOptsBuilder interface {
ToPortAssociationUpdateMap() (map[string]interface{}, error)
}
UpdatePortAssociationOptsBuilder allows extensions to add additional parameters to the UpdatePortAssociation request.
type UpdatePortAssociationResult ¶
type UpdatePortAssociationResult struct {
// contains filtered or unexported fields
}
UpdatePortAssociationResult represents the result of an update operation. Call its Extract method to interpret it as a PortAssociation.
func UpdatePortAssociation ¶
func UpdatePortAssociation(client *gophercloud.ServiceClient, bgpVpnID string, id string, opts UpdatePortAssociationOptsBuilder) (r UpdatePortAssociationResult)
UpdatePortAssociation updates a port association for a specified BGP VPN.
func (UpdatePortAssociationResult) Extract ¶
func (r UpdatePortAssociationResult) Extract() (*PortAssociation, error)
Extract is a function that accepts a result and extracts a BGP VPN resource.
func (UpdatePortAssociationResult) ExtractInto ¶
func (r UpdatePortAssociationResult) ExtractInto(v interface{}) error
type UpdateResult ¶
type UpdateResult struct {
// contains filtered or unexported fields
}
UpdateResult represents the result of an update operation. Call its Extract method to interpret it as a BGPVPN.
func Update ¶
func Update(c *gophercloud.ServiceClient, id string, opts UpdateOpts) (r UpdateResult)
Update accept a BGP VPN ID and an UpdateOpts and update the BGP VPN
func (UpdateResult) Extract ¶
Extract is a function that accepts a result and extracts a BGP VPN resource.
func (UpdateResult) ExtractInto ¶
func (r UpdateResult) ExtractInto(v interface{}) error
type UpdateRouterAssociationOpts ¶
type UpdateRouterAssociationOpts struct {
AdvertiseExtraRoutes *bool `json:"advertise_extra_routes,omitempty"`
}
UpdateRouterAssociationOpts represents options used to update a BGP VPN router association.
func (UpdateRouterAssociationOpts) ToRouterAssociationUpdateMap ¶
func (opts UpdateRouterAssociationOpts) ToRouterAssociationUpdateMap() (map[string]interface{}, error)
ToRouterAssociationUpdateMap builds a request body from UpdateRouterAssociationOpts.
type UpdateRouterAssociationOptsBuilder ¶
type UpdateRouterAssociationOptsBuilder interface {
ToRouterAssociationUpdateMap() (map[string]interface{}, error)
}
UpdateRouterAssociationOptsBuilder allows extensions to add additional parameters to the UpdateRouterAssociation request.
type UpdateRouterAssociationResult ¶
type UpdateRouterAssociationResult struct {
// contains filtered or unexported fields
}
UpdateRouterAssociationResult represents the result of an update operation. Call its Extract method to interpret it as a RouterAssociation.
func UpdateRouterAssociation ¶
func UpdateRouterAssociation(client *gophercloud.ServiceClient, bgpVpnID string, id string, opts UpdateRouterAssociationOptsBuilder) (r UpdateRouterAssociationResult)
UpdateRouterAssociation updates a router association for a specified BGP VPN.
func (UpdateRouterAssociationResult) Extract ¶
func (r UpdateRouterAssociationResult) Extract() (*RouterAssociation, error)
Extract is a function that accepts a result and extracts a BGP VPN resource.
func (UpdateRouterAssociationResult) ExtractInto ¶
func (r UpdateRouterAssociationResult) ExtractInto(v interface{}) error