class FTLinkA(FTAxChildBase): """Represents an underlying ALink interface of an AX as understood by a particular FT node.""" __tablename__ = 'ft_linka' adapter_id = sa.Column(sa.Integer) adapter_name = sa.Column(sa.String(255)) ft_ip_config = sa.Column(st.JsonDictType()) ft_remote_ip_config = sa.Column(st.JsonDictType())
class FTNic(FTAxChildBase): """Represents an underlying NIC of an AX as understood by a particular FT node.""" __tablename__ = 'ft_nic' ft_ip_config = sa.Column(st.JsonDictType()) ft_remote_ip_config = sa.Column(st.JsonDictType()) device_name = sa.Column(sa.String(255)) enabled = sa.Column(sa.Boolean) mac = sa.Column(sa.String(17)) network_bridge = sa.Column(sa.String(255)) ft_lnic_id = sa.Column(sa.String(36), sa.ForeignKey(FTLNic.id))
class FTGuestOs(FTPvmChildBase): """Represents the GuestOS of a PVM as understood by a particular FT node.""" __tablename__ = 'ft_guest_os' auto_resynch = sa.Column(sa.Boolean) auto_start = sa.Column(sa.Boolean) currently_capable_of_online_migration = sa.Column(sa.Boolean) synch_idle_timer = sa.Column(sa.Integer) synch_idle_timer_limits = sa.Column(st.JsonDictType())
class FTDisk(FTAxChildBase): """Represents an underlying Disk of an AX as understood by a particular FT node.""" __tablename__ = 'ft_disk' capacity = sa.Column(sa.Integer) mirrored = sa.Column(sa.Boolean) virtual_disk = sa.Column(sa.Boolean) ax_access = sa.Column(sa.Boolean) sector_size = sa.Column(sa.Integer) number_of_sectors = sa.Column(sa.Integer) immigrant = sa.Column(sa.Boolean) scrub_switch = sa.Column(sa.Boolean) ft_scrub_status = sa.Column(st.JsonDictType()) enabled = sa.Column(sa.Boolean) zbc_switch = sa.Column(sa.Boolean) ft_zbc_status = sa.Column(st.JsonDictType()) type = sa.Column(sa.String(20)) previous_state_change_date_time = sa.Column(sa.DateTime) ft_ldisk_id = sa.Column(sa.String(36), sa.ForeignKey(FTLDisk.id))
class FTBase(mb.HighlanderSecureModelBase): """Abstract FT base object.""" __abstract__ = True id = mb.id_column() state = sa.Column(st.JsonDictType()) @declared_attr def resiliency_server_id(self): return sa.Column(sa.String(36), sa.ForeignKey(ResiliencyServer.id), primary_key=True)