Documentation ¶
Overview ¶
Package ha is the client.Device.HaConfig namespace.
Normalized object: Config
Index ¶
Constants ¶
View Source
const ( // Mode Values ModeActivePassive = "active-passive" ModeActiveActive = "active-active" // ApPassiveLinkState Values ApPassiveLinkStateAuto = "auto" ApPassiveLinkStateShutdown = "shutdown" // ElectionTimersMode Values ElectionTimersModeRecommended = "recommended" ElectionTimersModeAggressive = "aggressive" ElectionTimersModeAdvanced = "advanced" // ElectionTimersAdvFlapMax Values ElectionTimersAdvFlapMaxInfinite = "infinite" ElectionTimersAdvFlapMaxDisable = "disable" // Ha2StateSyncTransport Values Ha2StateSyncTransportEthernet = "ethernet" Ha2StateSyncTransportIp = "ip" Ha2StateSyncTransportUdp = "udp" // Ha2StateSyncKeepAliveAction Values Ha2StateSyncKeepAliveActionLogOnly = "log-only" Ha2StateSyncKeepAliveActionSplitDatapath = "split-datapath" // LinkMonitorFailureCondition Values LinkMonitorFailureConditionAny = "any" LinkMonitorFailureConditionAll = "all" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Enable bool GroupId int Description string Mode string PeerHa1IpAddress string BackupPeerHa1IpAddress string ConfigSyncEnable bool Ha1 *Ha1Interface Ha1Backup *Ha1BackupInterface Ha2 *Ha2Interface Ha2Backup *Ha2Interface Ha3 *Ha3Interface Ha4 *Ha4Interface Ha4Backup *Ha4Interface // active passive ApPassiveLinkState string ApMonitorFailHoldDownTime int ElectionDevicePriority string ElectionPreemptive bool ElectionHeartBeatBackup bool ElectionTimersMode string ElectionTimersAdvPromotionHoldTime string ElectionTimersAdvHelloInterval int ElectionTimersAdvHeartBeatInterval int ElectionTimersAdvFlapMax string ElectionTimersAdvPreemptionHoldTime int ElectionTimersAdvMonitorFailHoldUpTime string ElectionTimersAdvAdditionalMasterHoldUpTime string Ha2StateSyncEnable bool Ha2StateSyncTransport string Ha2StateSyncKeepAliveEnable bool Ha2StateSyncKeepAliveAction string Ha2StateSyncKeepAliveThreshold int LinkMonitorEnable bool LinkMonitorFailureCondition string // contains filtered or unexported fields }
Config is a normalized, version independent representation of a device HA configuration.
type Firewall ¶
type Firewall struct {
// contains filtered or unexported fields
}
Firewall is the client.Device.HaConfig namespace.
func FirewallNamespace ¶
func FirewallNamespace(client util.XapiClient) *Firewall
FirewallNamespace returns an initialized namespace.
type Ha1BackupInterface ¶
type Ha1Interface ¶
type Ha2Interface ¶
type Ha3Interface ¶
type Ha3Interface struct {
Port string
}
type Ha4Interface ¶
Click to show internal directories.
Click to hide internal directories.