package com.bocloud.ims.entity.resource.fusionsphere;

import com.bocloud.entity.annotations.Column;
import com.bocloud.entity.annotations.IgnoreAll;
import com.bocloud.entity.annotations.PK;
import com.bocloud.entity.annotations.Table;
import com.bocloud.entity.bean.GenericEntity;
import com.bocloud.entity.meta.PKStrategy;
import lombok.Data;

/**
 * @ClassName: HostPort
 * @Description:
 * @author: zhenpingLi/李振平
 * @date: 2021/11/2 13:49
 */
@Table("fusion_sphere_host_port")
@Data
public class FusionSphereHostPort extends GenericEntity {

    @PK(value = PKStrategy.AUTO)
    private Long id;
    @Column("host_id")
    private Long hostId; // 主机ID
    @Column("port_uuid")
    private String portUuid;
    @Column("uri")
    private String uri;
    @Column("flag")
    private Integer flag;
    @Column("is_used")
    private String isUsed;//是否被使用
    @Column("bind_status")
    private String bindStatus;//是否绑定
    @Column("speed")
    private Integer speed;//物理网口速率单位为M
    @Column("strategy")
    private String strategy;//汇聚策略
    @Column("nic_id")
    private Long nicId;//网卡标识
    @Column("nic_mode")
    private String nicMode;//使用的交换类型
    @Column("system_intf_num")
    private Integer systemIntfNum;//port关联的systemIntf数量
    @Column("dvs_id")
    private Long dvsId;//网口关联dvs的urn。
    @Column("nic_speed")
    private Integer nicSpeed;//网口规格速率
    @Column("driver_mode")
    private String driverMode;//网口驱动模式
    @Column("numa_node")
    private Integer numaNode;//如果port flag是0：Uplinkport，则此处返回网口所属的numaNode值，否则返回-1，表示不涉及。
    @Column("vendor_id")
    private Long vendorId;
    @Column("parent_id")
    private Long parentId;
    @IgnoreAll
    private String dvsName;//网口关联dvs的名称。
    @IgnoreAll
    private String nicName;//网卡名称
    @IgnoreAll
    private String nicType;//网卡类型
    @IgnoreAll
    private String hostName;

}