Documentation ¶
Index ¶
- Constants
- func BackupGobgpRun(path, backup string, client api.RpcApiClient) (*api.ExecuteReply, error)
- func CommitGobgpRun(backup string, wait time.Duration, client api.RpcApiClient) (*api.ExecuteReply, error)
- func DoGobgpRun(cmd string, path string, args []string, client api.RpcApiClient) (*api.ExecuteReply, error)
- func GobgpBackupPath(path string) string
- func LoadGobgpRun(wait time.Duration, client api.RpcApiClient) (*api.ExecuteReply, error)
- func RestartGobgpRun(client api.RpcApiClient) (*api.ExecuteReply, error)
- func RollbackGobgpRun(backup, path string, client api.RpcApiClient) (*api.ExecuteReply, error)
Constants ¶
View Source
const ( GOBGP_CONF_PATH = "/etc/frr/gobgpd.toml" GOBGP_WAIT_SEC = 1 * time.Second GOBGP_PROCESS_NAME = "gobgpd" GOBGP_RELOAD_SIGNAL = "-HUP" )
Variables ¶
This section is empty.
Functions ¶
func BackupGobgpRun ¶
func BackupGobgpRun(path, backup string, client api.RpcApiClient) (*api.ExecuteReply, error)
func CommitGobgpRun ¶
func CommitGobgpRun(backup string, wait time.Duration, client api.RpcApiClient) (*api.ExecuteReply, error)
func DoGobgpRun ¶
func DoGobgpRun(cmd string, path string, args []string, client api.RpcApiClient) (*api.ExecuteReply, error)
func GobgpBackupPath ¶
func LoadGobgpRun ¶
func LoadGobgpRun(wait time.Duration, client api.RpcApiClient) (*api.ExecuteReply, error)
func RestartGobgpRun ¶
func RestartGobgpRun(client api.RpcApiClient) (*api.ExecuteReply, error)
func RollbackGobgpRun ¶
func RollbackGobgpRun(backup, path string, client api.RpcApiClient) (*api.ExecuteReply, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.