-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from yanet-platform/sync
sync with 55.0 version
- Loading branch information
Showing
17 changed files
with
734 additions
and
358 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,5 +15,3 @@ __pycache__ | |
.settings/ | ||
.pydevproject | ||
report/ | ||
.qtc_clangd | ||
.vscode |
47 changes: 47 additions & 0 deletions
47
autotests/units/001_one_port/049_balancer_version/autotest.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
steps: | ||
- ipv4Update: "0.0.0.0/0 -> 200.0.0.1" | ||
- ipv6Update: "::/0 -> fe80::1" | ||
- cli_check: | | ||
balancer service any | ||
module virtual_ip proto virtual_port scheduler connections packets bytes version | ||
--------- ---------- ----- ------------ --------- ----------- ------- ----- ---------- | ||
balancer0 10.49.0.1 tcp 80 rr 0 0 0 10 | ||
balancer0 10.49.0.2 tcp 80 rr 0 0 0 0 | ||
balancer0 10.49.0.3 tcp 80 rr 0 0 0 Kukarekuuu | ||
balancer0 10.49.0.4 tcp 80 rr 0 0 0 n/s | ||
- cli_check: | | ||
balancer real any | ||
module virtual_ip proto virtual_port scheduler real_ip real_port enabled weight connections packets bytes version | ||
--------- ---------- ----- ------------ --------- ---------- --------- ------- ------ ----------- ------- ----- ---------- | ||
balancer0 10.49.0.1 tcp 80 rr 2000:49::1 80 false 1 0 0 0 10 | ||
balancer0 10.49.0.1 tcp 80 rr 2000:49::2 80 false 1 0 0 0 10 | ||
balancer0 10.49.0.2 tcp 80 rr 2001:49::1 80 false 1 0 0 0 0 | ||
balancer0 10.49.0.2 tcp 80 rr 2001:49::2 80 false 1 0 0 0 0 | ||
balancer0 10.49.0.3 tcp 80 rr 2002:49::1 80 false 1 0 0 0 Kukarekuuu | ||
balancer0 10.49.0.3 tcp 80 rr 2002:49::2 80 false 1 0 0 0 Kukarekuuu | ||
balancer0 10.49.0.4 tcp 80 rr 2003:49::1 80 false 1 0 0 0 n/s | ||
balancer0 10.49.0.4 tcp 80 rr 2003:49::2 80 false 1 0 0 0 n/s | ||
- reload: controlplane.2.conf | ||
- cli_check: | | ||
balancer service any | ||
module virtual_ip proto virtual_port scheduler connections packets bytes version | ||
--------- ---------- ----- ------------ --------- ----------- ------- ----- ------- | ||
balancer0 10.49.0.1 tcp 80 rr 0 0 0 11 | ||
balancer0 10.49.0.2 tcp 80 rr 0 0 0 0 | ||
balancer0 10.49.0.3 tcp 80 rr 0 0 0 Kukarek | ||
balancer0 10.49.0.4 tcp 80 rr 0 0 0 n/s | ||
- cli_check: | | ||
balancer real any | ||
module virtual_ip proto virtual_port scheduler real_ip real_port enabled weight connections packets bytes version | ||
--------- ---------- ----- ------------ --------- ---------- --------- ------- ------ ----------- ------- ----- ------- | ||
balancer0 10.49.0.1 tcp 80 rr 2000:49::1 80 false 1 0 0 0 11 | ||
balancer0 10.49.0.1 tcp 80 rr 2000:49::2 80 false 1 0 0 0 11 | ||
balancer0 10.49.0.2 tcp 80 rr 2001:49::1 80 false 1 0 0 0 0 | ||
balancer0 10.49.0.2 tcp 80 rr 2001:49::2 80 false 1 0 0 0 0 | ||
balancer0 10.49.0.3 tcp 80 rr 2002:49::1 80 false 1 0 0 0 Kukarek | ||
balancer0 10.49.0.3 tcp 80 rr 2002:49::2 80 false 1 0 0 0 Kukarek | ||
balancer0 10.49.0.4 tcp 80 rr 2003:49::1 80 false 1 0 0 0 n/s | ||
balancer0 10.49.0.4 tcp 80 rr 2003:49::2 80 false 1 0 0 0 n/s |
46 changes: 46 additions & 0 deletions
46
autotests/units/001_one_port/049_balancer_version/controlplane.2.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{ | ||
"modules": { | ||
"lp0.100": { | ||
"type": "logicalPort", | ||
"physicalPort": "kni0", | ||
"vlanId": "100", | ||
"macAddress": "00:11:22:33:44:55", | ||
"nextModule": "acl0" | ||
}, | ||
"lp0.200": { | ||
"type": "logicalPort", | ||
"physicalPort": "kni0", | ||
"vlanId": "200", | ||
"macAddress": "00:11:22:33:44:55", | ||
"nextModule": "acl0" | ||
}, | ||
"acl0": { | ||
"type": "acl", | ||
"nextModules": [ | ||
"balancer0", | ||
"route0" | ||
] | ||
}, | ||
"balancer0": { | ||
"type": "balancer", | ||
"source": "2000:51b::1", | ||
"services": "services.2.conf", | ||
"nextModule": "route0" | ||
}, | ||
"route0": { | ||
"type": "route", | ||
"interfaces": { | ||
"kni0.100": { | ||
"neighborIPv6Address": "fe80::1", | ||
"neighborMacAddress": "00:00:00:00:00:01", | ||
"nextModule": "lp0.100" | ||
}, | ||
"kni0.200": { | ||
"neighborIPv4Address": "200.0.0.1", | ||
"neighborMacAddress": "00:00:00:00:00:02", | ||
"nextModule": "lp0.200" | ||
} | ||
} | ||
} | ||
} | ||
} |
46 changes: 46 additions & 0 deletions
46
autotests/units/001_one_port/049_balancer_version/controlplane.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{ | ||
"modules": { | ||
"lp0.100": { | ||
"type": "logicalPort", | ||
"physicalPort": "kni0", | ||
"vlanId": "100", | ||
"macAddress": "00:11:22:33:44:55", | ||
"nextModule": "acl0" | ||
}, | ||
"lp0.200": { | ||
"type": "logicalPort", | ||
"physicalPort": "kni0", | ||
"vlanId": "200", | ||
"macAddress": "00:11:22:33:44:55", | ||
"nextModule": "acl0" | ||
}, | ||
"acl0": { | ||
"type": "acl", | ||
"nextModules": [ | ||
"balancer0", | ||
"route0" | ||
] | ||
}, | ||
"balancer0": { | ||
"type": "balancer", | ||
"source": "2000:51b::1", | ||
"services": "services.conf", | ||
"nextModule": "route0" | ||
}, | ||
"route0": { | ||
"type": "route", | ||
"interfaces": { | ||
"kni0.100": { | ||
"neighborIPv6Address": "fe80::1", | ||
"neighborMacAddress": "00:00:00:00:00:01", | ||
"nextModule": "lp0.100" | ||
}, | ||
"kni0.200": { | ||
"neighborIPv4Address": "200.0.0.1", | ||
"neighborMacAddress": "00:00:00:00:00:02", | ||
"nextModule": "lp0.200" | ||
} | ||
} | ||
} | ||
} | ||
} |
69 changes: 69 additions & 0 deletions
69
autotests/units/001_one_port/049_balancer_version/services.2.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
[ | ||
{ | ||
"vip": "10.49.0.1", | ||
"proto": "tcp", | ||
"vport": "80", | ||
"scheduler": "rr", | ||
"version": "11", | ||
"reals": [ | ||
{ | ||
"ip": "2000:49::1", | ||
"port": "80" | ||
}, | ||
{ | ||
"ip": "2000:49::2", | ||
"port": "80" | ||
} | ||
] | ||
}, | ||
{ | ||
"vip": "10.49.0.2", | ||
"proto": "tcp", | ||
"vport": "80", | ||
"scheduler": "rr", | ||
"version": "0", | ||
"reals": [ | ||
{ | ||
"ip": "2001:49::1", | ||
"port": "80" | ||
}, | ||
{ | ||
"ip": "2001:49::2", | ||
"port": "80" | ||
} | ||
] | ||
}, | ||
{ | ||
"vip": "10.49.0.3", | ||
"proto": "tcp", | ||
"vport": "80", | ||
"scheduler": "rr", | ||
"version": "Kukarek", | ||
"reals": [ | ||
{ | ||
"ip": "2002:49::1", | ||
"port": "80" | ||
}, | ||
{ | ||
"ip": "2002:49::2", | ||
"port": "80" | ||
} | ||
] | ||
}, | ||
{ | ||
"vip": "10.49.0.4", | ||
"proto": "tcp", | ||
"vport": "80", | ||
"scheduler": "rr", | ||
"reals": [ | ||
{ | ||
"ip": "2003:49::1", | ||
"port": "80" | ||
}, | ||
{ | ||
"ip": "2003:49::2", | ||
"port": "80" | ||
} | ||
] | ||
} | ||
] |
69 changes: 69 additions & 0 deletions
69
autotests/units/001_one_port/049_balancer_version/services.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
[ | ||
{ | ||
"vip": "10.49.0.1", | ||
"proto": "tcp", | ||
"vport": "80", | ||
"scheduler": "rr", | ||
"version": "10", | ||
"reals": [ | ||
{ | ||
"ip": "2000:49::1", | ||
"port": "80" | ||
}, | ||
{ | ||
"ip": "2000:49::2", | ||
"port": "80" | ||
} | ||
] | ||
}, | ||
{ | ||
"vip": "10.49.0.2", | ||
"proto": "tcp", | ||
"vport": "80", | ||
"scheduler": "rr", | ||
"version": "0", | ||
"reals": [ | ||
{ | ||
"ip": "2001:49::1", | ||
"port": "80" | ||
}, | ||
{ | ||
"ip": "2001:49::2", | ||
"port": "80" | ||
} | ||
] | ||
}, | ||
{ | ||
"vip": "10.49.0.3", | ||
"proto": "tcp", | ||
"vport": "80", | ||
"scheduler": "rr", | ||
"version": "Kukarekuuu", | ||
"reals": [ | ||
{ | ||
"ip": "2002:49::1", | ||
"port": "80" | ||
}, | ||
{ | ||
"ip": "2002:49::2", | ||
"port": "80" | ||
} | ||
] | ||
}, | ||
{ | ||
"vip": "10.49.0.4", | ||
"proto": "tcp", | ||
"vport": "80", | ||
"scheduler": "rr", | ||
"reals": [ | ||
{ | ||
"ip": "2003:49::1", | ||
"port": "80" | ||
}, | ||
{ | ||
"ip": "2003:49::2", | ||
"port": "80" | ||
} | ||
] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.