package com.bocloud.ims.entity.resource;

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.Generic;
import com.bocloud.entity.meta.PKStrategy;
import lombok.Data;

import java.util.List;

@Table("sangfor_iface")
@Data
public class SangforIface extends Generic {
    @PK(value = PKStrategy.AUTO)
    private Long id;
    @Column("vendor_id")
    private Long vendorId;
    @Column("uuid")
    private String uuid;
    @Column("is_deleted")
    private Boolean deleted;


    @Column("name")
    private String name;        // name
    @Column("node_id")
    private String node_id;
    @Column("node_name")
    private String node_name;   // 主机名称
    @Column("node_status")
    private String nodeStatus;
    @Column("channel_protection")
    private Integer channelProtection;
    @Column("members")
    private String members;     // 管理通信口成员
    @Column("driver_type")
    private String driverType;
    @Column("supported_link_modes")
    private String supportedLinkModes;
    @Column("mode")
    private String mode;
    @Column("rate")
    private Integer rate;
    @Column("disasterRole")
    private Integer disasterRole;
    @Column("remark")
    private String remark;
    @Column("mac")
    private String mac;
    @Column("mtu")
    private String mtu;
    @Column("iface_mode")
    private String ifaceMode;
    @Column("link_mode")
    private Integer linkMode;
    @Column("type")
    private String type;
    @Column("role")
    private String role;
    @Column("alias")
    private String alias;
    @Column("vxlan")
    private String vxlan;
    @Column("ip")
    private String ip;
    @Column("gateway")
    private String gateway;
    @Column("status")
    private Boolean status;
    @Column("main")
    private String primary;
    @Column("speed")
    private String speed;
    @Column("netmask")
    private String netmask;
    @Column("enable")
    private Boolean enable;
    @Column("bdrSwitch")
    private String bdrSwitch;
    @Column("vs_used")
    private Boolean vsUsed;
    @Column("support_speed")
    private String supportSpeed;
    @IgnoreAll
    private List eths;

    @IgnoreAll
    private String nodeId;
    @IgnoreAll
    private String nodeName;



}
