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

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.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * f5 vlans实体类
 *
 * @author liuyuanyuan
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Table("bi_vlans")
public class BiVlans extends GenericEntity {
    @PK(value = PKStrategy.AUTO)
    private Long id; // ID
    @Column("tag")
    private Long tag;
    @Column("source_checking")
    private Boolean sourceChecking;
    @Column("mtu")
    private Long mtu;
    @Column("auto_lasthop")
    private String autoLasthop;
    @Column("sflow")
    private String sflow; // 前端传参格式例如：{"pollInterval":1,"samplingRate":1}
    @Column("vendor_id")
    private Long vendorId;
    @Column("partition_id")
    private Long partitionId;
    @IgnoreAll
    private String partitionName;

}
