trunk_details

package
v1.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 6, 2024 License: Apache-2.0 Imports: 1 Imported by: 2

Documentation

Overview

Package trunk_details provides the ability to extend a ports result with additional information about any trunk and subports associated with the port.

Example:

type portExt struct {
  ports.Port
  trunk_details.TrunkDetailsExt
}
var portExt portExt

err := ports.Get(networkClient, "2ba3a709-e40e-462c-a541-85e99de589bf").ExtractInto(&portExt)
if err != nil {
  panic(err)
}

fmt.Printf("%+v\n", portExt)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Subport

type Subport struct {
	trunks.Subport

	// mac_address contains the MAC address of the subport.
	// Note that MACAddress may not be returned in list queries
	MACAddress string `json:"mac_address,omitempty"`
}

type TrunkDetails

type TrunkDetails struct {
	// trunk_id contains the UUID of the trunk
	TrunkID string `json:"trunk_id"`

	// sub_ports contains a list of subports associated with the trunk
	SubPorts []Subport `json:"sub_ports,omitempty"`
}

TrunkDetails contains additional trunking information returned in a ports query.

type TrunkDetailsExt

type TrunkDetailsExt struct {
	// trunk_details contains details of any trunk associated with the port
	TrunkDetails `json:"trunk_details,omitempty"`
}

TrunkDetailsExt represents additional trunking information returned in a ports query.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL