Skip to content

Commit

Permalink
Add persistence and id fields
Browse files Browse the repository at this point in the history
  • Loading branch information
fvanroie committed Jun 29, 2018
1 parent 7898152 commit 0a27d71
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Classes/HAProxy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,10 @@ public class Backend {
public PSObject linkedServers { get; set; }
public PSObject mode { get; set; }
public string name { get; set; }
public PSObject persistence { get; set; }
public PSObject persistence_cookiemode { get; set; }
public string persistence_cookiename { get; set; }
public bool persistence_stripquotes { get; set; }
public PSObject proxyProtocol { get; set; }
public string source { get; set; }
public string stickiness_bytesInRatePeriod { get; set; }
Expand Down Expand Up @@ -499,6 +503,10 @@ public class Backend {
linkedServers = null;
mode = null;
name = null;
persistence = null;
persistence_cookiemode = null;
persistence_cookiename = "SRVCOOKIE";
persistence_stripquotes = true;
proxyProtocol = null;
source = null;
stickiness_bytesInRatePeriod = "1m";
Expand Down Expand Up @@ -539,6 +547,10 @@ public class Backend {
PSObject LinkedServers,
PSObject Mode,
string Name,
PSObject Persistence,
PSObject Persistence_Cookiemode,
string Persistence_Cookiename,
byte Persistence_Stripquotes,
PSObject ProxyProtocol,
string Source,
string Stickiness_BytesInRatePeriod,
Expand Down Expand Up @@ -577,6 +589,10 @@ string Tuning_TimeoutServer
linkedServers = LinkedServers;
mode = Mode;
name = Name;
persistence = Persistence;
persistence_cookiemode = Persistence_Cookiemode;
persistence_cookiename = Persistence_Cookiename;
persistence_stripquotes = (Persistence_Stripquotes == 0) ? false : true;
proxyProtocol = ProxyProtocol;
source = Source;
stickiness_bytesInRatePeriod = Stickiness_BytesInRatePeriod;
Expand Down Expand Up @@ -993,6 +1009,7 @@ public class Server {
public string checkInterval { get; set; }
public uint checkport { get; set; }
public string description { get; set; }
public string id { get; set; }
public PSObject mode { get; set; }
public string name { get; set; }
public uint port { get; set; }
Expand All @@ -1012,6 +1029,7 @@ public class Server {
checkInterval = null;
checkport = 0;
description = null;
id = null;
mode = null;
name = null;
port = 0;
Expand All @@ -1031,6 +1049,7 @@ public class Server {
string CheckInterval,
uint Checkport,
string Description,
string Id,
PSObject Mode,
string Name,
uint Port,
Expand All @@ -1048,6 +1067,7 @@ uint Weight
checkInterval = CheckInterval;
checkport = Checkport;
description = Description;
id = Id;
mode = Mode;
name = Name;
port = Port;
Expand Down

0 comments on commit 0a27d71

Please sign in to comment.