yunion.io/x/cloudmux@v0.3.10-0-alpha.1/pkg/apis/compute/routetable_routesets.go (about)

     1  // Copyright 2019 Yunion
     2  //
     3  // Licensed under the Apache License, Version 2.0 (the "License");
     4  // you may not use this file except in compliance with the License.
     5  // You may obtain a copy of the License at
     6  //
     7  //     http://www.apache.org/licenses/LICENSE-2.0
     8  //
     9  // Unless required by applicable law or agreed to in writing, software
    10  // distributed under the License is distributed on an "AS IS" BASIS,
    11  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  // See the License for the specific language governing permissions and
    13  // limitations under the License.
    14  
    15  package compute
    16  
    17  const (
    18  	ROUTE_ENTRY_TYPE_CUSTOM    = "Custom" // 自定义路由
    19  	ROUTE_ENTRY_TYPE_SYSTEM    = "System" // 系统路由
    20  	ROUTE_ENTRY_TYPE_PROPAGATE = "Propagate"
    21  )
    22  
    23  const (
    24  	NEXT_HOP_TYPE_INSTANCE         = "Instance"              // ECS实例。
    25  	NEXT_HOP_TYPE_HAVIP            = "HaVip"                 // 高可用虚拟IP。
    26  	NEXT_HOP_TYPE_VPN              = "VpnGateway"            // VPN网关。
    27  	NEXT_HOP_TYPE_NAT              = "NatGateway"            // NAT网关。
    28  	NEXT_HOP_TYPE_NETWORK          = "NetworkInterface"      // 辅助弹性网卡。
    29  	NEXT_HOP_TYPE_EIP              = "Eip"                   // 弹性IP
    30  	NEXT_HOP_TYPE_ROUTER           = "RouterInterface"       // 路由器接口。
    31  	NEXT_HOP_TYPE_IPV6             = "IPv6Gateway"           // IPv6网关。
    32  	NEXT_HOP_TYPE_INTERNET         = "InternetGateway"       // Internet网关。
    33  	NEXT_HOP_TYPE_EGRESS_INTERNET  = "EgressInternetGateway" // egress only Internet网关。
    34  	NEXT_HOP_TYPE_VPCPEERING       = "VpcPeering"            // vpc对等连接
    35  	NEXT_HOP_TYPE_INTERVPCNETWORK  = "InterVpcNetwork"       //vpc 互联网络
    36  	NEXT_HOP_TYPE_DIRECTCONNECTION = "DirectConnection"      //专线
    37  	NEXT_HOP_TYPE_VPC              = "VPC"
    38  	NEXT_HOP_TYPE_VBR              = "VBR" // 边界路由器
    39  
    40  	NEXT_HOP_TYPE_IP = "IP"
    41  )
    42  
    43  const (
    44  	ROUTE_ENTRY_STATUS_AVAILIABLE = "available"
    45  	ROUTE_ENTRY_STATUS_CONFLICT   = "conflict"
    46  	ROUTE_ENTRY_STATUS_DISABLED   = "disabled"
    47  	ROUTE_ENTRY_STATUS_UNKNOWN    = "unknown"
    48  )