Skip to content

Commit

Permalink
add autotest for check command 'yanet-cli memory group'
Browse files Browse the repository at this point in the history
  • Loading branch information
Timur Aitov committed Feb 27, 2024
1 parent 3f1ccb8 commit 36d406b
Show file tree
Hide file tree
Showing 2 changed files with 102 additions and 0 deletions.
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
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"
}
]
}
]
}
]
}

0 comments on commit 36d406b

Please sign in to comment.