github.com/gophercloud/gophercloud@v1.11.0/openstack/networking/v2/extensions/trunk_details/results.go (about)

     1  package trunk_details
     2  
     3  import (
     4  	"github.com/gophercloud/gophercloud/openstack/networking/v2/extensions/trunks"
     5  )
     6  
     7  // TrunkDetailsExt represents additional trunking information returned in a
     8  // ports query.
     9  type TrunkDetailsExt struct {
    10  	// trunk_details contains details of any trunk associated with the port
    11  	TrunkDetails `json:"trunk_details,omitempty"`
    12  }
    13  
    14  // TrunkDetails contains additional trunking information returned in a
    15  // ports query.
    16  type TrunkDetails struct {
    17  	// trunk_id contains the UUID of the trunk
    18  	TrunkID string `json:"trunk_id"`
    19  
    20  	// sub_ports contains a list of subports associated with the trunk
    21  	SubPorts []Subport `json:"sub_ports,omitempty"`
    22  }
    23  
    24  type Subport struct {
    25  	trunks.Subport
    26  
    27  	// mac_address contains the MAC address of the subport.
    28  	// Note that MACAddress may not be returned in list queries
    29  	MACAddress string `json:"mac_address,omitempty"`
    30  }