-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add autotest for check command 'yanet-cli memory group'
- Loading branch information
Timur Aitov
committed
Feb 27, 2024
1 parent
3f1ccb8
commit 36d406b
Showing
2 changed files
with
102 additions
and
0 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
autotest/units/001_one_port/074_dynamic_allocation_acl/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,15 @@ | ||
steps: | ||
- cli_check: | | ||
YANET_FORMAT_COLUMNS=group,maximum memory group | ||
group maximum | ||
------------------------------ ---------- | ||
acl.network.ht 1048576 | ||
acl.transport.ht 67108864 | ||
acl.total.ht 67108864 | ||
acl.network.v4.source.lpm 71303168 | ||
acl.network.v4.destination.lpm 71303168 | ||
acl.network.v6.source.lpm 1073741824 | ||
acl.network.v6.destination.ht 262144 | ||
acl.network.v6.destination.lpm 1073741824 | ||
acl.network 157286400 | ||
acl 277872640 |
87 changes: 87 additions & 0 deletions
87
autotest/units/001_one_port/074_dynamic_allocation_acl/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,87 @@ | ||
{ | ||
"modules": { | ||
"lp0.100": { | ||
"type": "logicalPort", | ||
"physicalPort": "kni0", | ||
"vlanId": "100", | ||
"macAddress": "00:00:00:11:11:11", | ||
"nextModule": "acl0" | ||
}, | ||
"lp0.200": { | ||
"type": "logicalPort", | ||
"physicalPort": "kni0", | ||
"vlanId": "200", | ||
"macAddress": "00:00:00:22:22:22", | ||
"nextModule": "acl0" | ||
}, | ||
"acl0": { | ||
"type": "acl", | ||
"nextModules": [ | ||
"route0" | ||
] | ||
}, | ||
"route0": { | ||
"type": "route", | ||
"interfaces": { | ||
"kni0.100": { | ||
"ipAddresses": [ | ||
"200.0.0.100/24" | ||
], | ||
"nextModule": "lp0.100" | ||
}, | ||
"kni0.200": { | ||
"ipAddresses": [ | ||
"fe80::200/96" | ||
], | ||
"nextModule": "lp0.200" | ||
} | ||
} | ||
} | ||
}, | ||
"memory_groups": [ | ||
{ | ||
"name": "acl", | ||
"limit": "265M", | ||
"memory_groups": [ | ||
{ | ||
"name": "acl.network.ht", | ||
"limit": "1048576" | ||
}, | ||
{ | ||
"name": "acl.transport.ht", | ||
"limit": "64M" | ||
}, | ||
{ | ||
"name": "acl.total.ht", | ||
"limit": "64M" | ||
}, | ||
{ | ||
"name": "acl.network", | ||
"limit": "150M", | ||
"memory_groups": [ | ||
{ | ||
"name": "acl.network.v4.source.lpm", | ||
"limit": "68M" | ||
}, | ||
{ | ||
"name": "acl.network.v4.destination.lpm", | ||
"limit": "68M" | ||
}, | ||
{ | ||
"name": "acl.network.v6.source.lpm", | ||
"limit": "1G" | ||
}, | ||
{ | ||
"name": "acl.network.v6.destination.ht", | ||
"limit": "256K" | ||
}, | ||
{ | ||
"name": "acl.network.v6.destination.lpm", | ||
"limit": "1G" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} |