Skip to content

Commit

Permalink
Initial updates to saigen
Browse files Browse the repository at this point in the history
  • Loading branch information
albertovillarreal-keys committed Apr 23, 2024
1 parent 2b2ca39 commit 08b3c49
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions dpugen/dflt_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
'PAR': '221.2.0.1', # '221.2.0.1'
'GATEWAY': '222.0.0.1', # '222.0.0.1'

'DPUS': 8, # 1
'DPUS': 1, # 1

'ENI_START': 1, # 1
'ENI_COUNT': 256, # 32
'ENI_COUNT': 1, # 32
'ENI_STEP': 1, # 1
'ENI_L2R_STEP': 1000, # 1000

Expand All @@ -39,5 +39,5 @@
'IP_STEP_ACL': '0.0.1.0',
'IP_STEPE': '0.0.0.2',

'TOTAL_OUTBOUND_ROUTES': 25600000 # ENI_COUNT * 100K
'TOTAL_OUTBOUND_ROUTES': 100000 # ENI_COUNT * 100K
}
2 changes: 1 addition & 1 deletion dpugen/saigen/address_maps.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def items(self):

eni_mac = str(
maca(
int(maca(p.MAC_L_START)) + eni_index * int(maca(p.ENI_MAC_STEP))
int(maca(p.MAC_L_START)) + eni_index * int(maca(p.MAC_STEP_ENI))
)
).replace('-', ':')

Expand Down
2 changes: 1 addition & 1 deletion dpugen/saigen/outbound_ca_to_pa.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def items(self):
remote_mac_a = str(
maca(
int(maca(p.MAC_R_START)) +
eni_index * int(maca(p.ENI_MAC_STEP)) +
eni_index * int(maca(p.MAC_STEP_ENI)) +
(nsg_index - 1) * int(maca(p.ACL_NSG_MAC_STEP)) +
(acl_index - 1) * int(maca(p.ACL_POLICY_MAC_STEP))
)
Expand Down

0 comments on commit 08b3c49

Please sign in to comment.