github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/networking/v2/extensions/portsbinding/results.go (about)

     1  package portsbinding
     2  
     3  // IP is a sub-struct that represents an individual IP.
     4  type IP struct {
     5  	SubnetID  string `json:"subnet_id"`
     6  	IPAddress string `json:"ip_address"`
     7  }
     8  
     9  // PortsBindingExt represents a decorated form of a Port with the additional
    10  // port binding information.
    11  type PortsBindingExt struct {
    12  	// The ID of the host where the port is allocated.
    13  	HostID string `json:"binding:host_id"`
    14  
    15  	// A dictionary that enables the application to pass information about
    16  	// functions that the Networking API provides.
    17  	VIFDetails map[string]interface{} `json:"binding:vif_details"`
    18  
    19  	// The VIF type for the port.
    20  	VIFType string `json:"binding:vif_type"`
    21  
    22  	// The virtual network interface card (vNIC) type that is bound to the
    23  	// neutron port.
    24  	VNICType string `json:"binding:vnic_type"`
    25  
    26  	// A dictionary that enables the application running on the specified
    27  	// host to pass and receive virtual network interface (VIF) port-specific
    28  	// information to the plug-in.
    29  	Profile map[string]string `json:"binding:profile"`
    30  }