fix(load-balancer): implement missing HAProxy reload and sanitize output handling
Implement the `reload_restart` method in `LoadBalancerConfig` to ensure proper HAProxy configuration management. Additionally, enhance SSH command execution by sanitizing and logging outputs effectively. This ensures robust handling of HAProxy configurations and improves debugging capabilities through trace-level logs.
This commit is contained in:
@@ -110,6 +110,7 @@ pub struct Filters {
|
||||
#[yaserde(rename = "rule")]
|
||||
pub rules: Vec<Rule>,
|
||||
pub bypassstaticroutes: Option<MaybeString>,
|
||||
pub scrub: Option<RawXml>,
|
||||
}
|
||||
|
||||
#[derive(Default, PartialEq, Debug, YaSerialize, YaDeserialize)]
|
||||
@@ -338,6 +339,10 @@ pub struct Snmpd {
|
||||
pub struct Syslog {
|
||||
pub reverse: Option<MaybeString>,
|
||||
pub preservelogs: Option<MaybeString>,
|
||||
pub nologdefaultblock: Option<u8>,
|
||||
pub nologdefaultpass: Option<u8>,
|
||||
pub nologbogons: Option<u8>,
|
||||
pub nologprivatenets: Option<u8>,
|
||||
}
|
||||
|
||||
#[derive(Default, PartialEq, Debug, YaSerialize, YaDeserialize)]
|
||||
|
||||
Reference in New Issue
Block a user