github.com/vmware/go-vmware-nsxt@v0.0.0-20230223012718-d31b8a1ca05e/manager/endpoint.go (about)

     1  /* Copyright © 2017 VMware, Inc. All Rights Reserved.
     2     SPDX-License-Identifier: BSD-2-Clause
     3  
     4     Generated by: https://github.com/swagger-api/swagger-codegen.git */
     5  
     6  package manager
     7  
     8  // An Endpoint object is part of HostSwitch configuration in TransportNode
     9  type Endpoint struct {
    10  
    11  	// Gateway IP
    12  	DefaultGateway string `json:"default_gateway,omitempty"`
    13  
    14  	// Name of the virtual tunnel endpoint
    15  	DeviceName string `json:"device_name,omitempty"`
    16  
    17  	// Depending upon the EndpointIpConfig used in HostSwitch, IP could be allocated either from DHCP (default) or from Static IP Pool.
    18  	Ip string `json:"ip,omitempty"`
    19  
    20  	// Unique label for this Endpoint
    21  	Label int32 `json:"label,omitempty"`
    22  
    23  	// Subnet mask
    24  	SubnetMask string `json:"subnet_mask,omitempty"`
    25  }