Skip to content

Commit

Permalink
Merge branch 'sonic-net:main' into pr-baby-hero-test1
Browse files Browse the repository at this point in the history
  • Loading branch information
mgheorghe authored Jan 17, 2023
2 parents a95638a + aff7eae commit 1a6a5c2
Show file tree
Hide file tree
Showing 41 changed files with 6,867 additions and 608 deletions.
17 changes: 17 additions & 0 deletions .wordlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,14 @@ CLI
CloudStorm
CNIP
codebase
collaterals
compat
Compat
conf
CONFDB
confgen
config
configs
Containerlab
CP
CreatedHalfOpenFlow
Expand Down Expand Up @@ -157,6 +159,8 @@ downcasting
DPDK
DPU
dpu
dpugen
DPUGEN
DPUControlMsgs
DPUs
drawio
Expand Down Expand Up @@ -246,6 +250,7 @@ IDL
iface
iflow
impactful
incrementing
inband
InbfromLB
INIT
Expand Down Expand Up @@ -350,6 +355,8 @@ NVidia
NVMe
observability
OCP
OID
OIDs
ok
Oleksandr
onboardsupport
Expand Down Expand Up @@ -383,6 +390,7 @@ Pensando
performant
pingmesh
PIR
pluggable
PLVision's
pmon
PNA
Expand All @@ -403,6 +411,7 @@ prereq
Pritsak
PrivateAddress
programmability
programmatically
protobuf
provids
PRs
Expand All @@ -413,6 +422,7 @@ py
PyPi
pytest
PyTest
PyTests
pytests
Pytest's
Pyunit
Expand Down Expand Up @@ -455,6 +465,9 @@ runtime
rx
SAI
sai
saic
SAIC
saichallenger
saigen
sairedis
SAIRPC
Expand Down Expand Up @@ -495,12 +508,14 @@ SoC
SoCs
Sommers
SONiC
SONiC's
SpoofingPacket
SRC
src
STATEDB
stateful
statemachine
stdout
struct
subclassed
subdirectories
Expand Down Expand Up @@ -552,6 +567,7 @@ TGen
Tgen
Tgens
th
throughs
ToC
TODO
TODOs
Expand Down Expand Up @@ -589,6 +605,7 @@ vcpus
veth
VFP
vip
vips
VIP
virsh
virt
Expand Down
7 changes: 7 additions & 0 deletions dash-pipeline/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -659,6 +659,13 @@ run-saichallenger-scale-tests: deploy-ixiac
$(DOCKER_SAI_CHALLENGER_CLIENT_IMG) \
./run-tests.sh --setup=$(SAI_CHALLENGER_SETUP_FILE) $(SAI_CHALLENGER_TEST)

run-saichallenger-tutorials: deploy-ixiac
$(DOCKER_RUN_SAI_CHALLENGER_CLIENT) \
-w /sai-challenger/dash_tests/functional \
$(DOCKER_FLAGS) \
$(DOCKER_SAI_CHALLENGER_CLIENT_IMG) \
./run-tests.sh --setup=$(SAI_CHALLENGER_SETUP_FILE) tutorial

###############################
# ENVIRONMENT SETUP TARGETS
###############################
Expand Down
8 changes: 8 additions & 0 deletions dash-pipeline/SAI/sai_api_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ def generate_sai_apis(program, ignore_tables):
for table in tables:
sai_table_data = dict()
sai_table_data['keys'] = []
sai_table_data['ipaddr_family_attr'] = 'false'
sai_table_data[ACTIONS_TAG] = []
sai_table_data[ACTION_PARAMS_TAG] = []

Expand Down Expand Up @@ -221,6 +222,13 @@ def generate_sai_apis(program, ignore_tables):
key2["v4_or_v6_id"] = key['id']
break

for key in sai_table_data['keys']:
if (key['match_type'] == 'exact' and key['sai_key_type'] == 'sai_ip_address_t') or \
(key['match_type'] == 'ternary' and key['sai_key_type'] == 'sai_ip_address_t') or \
(key['match_type'] == 'lpm' and key['sai_lpm_type'] == 'sai_ip_prefix_t') or \
(key['match_type'] == 'list' and key['sai_list_type'] == 'sai_ip_prefix_list_t'):
sai_table_data['ipaddr_family_attr'] = 'true'

param_names = []
for action in table[ACTION_REFS_TAG]:
action_id = action["id"]
Expand Down
2 changes: 1 addition & 1 deletion dash-pipeline/SAI/templates/saiapi.cpp.j2
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ sai_status_t sai_create_{{ table.name }}(
return 0;
ErrRet:
delete matchActionEntry;
RemoveFromTable({{ table.name }}_id);
RemoveFromTable(*{{ table.name }}_id);
return -1;
}

Expand Down
11 changes: 11 additions & 0 deletions dash-pipeline/SAI/templates/saiapi.h.j2
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,17 @@ typedef enum _sai_{{ table.name }}_attr_t

{% endif %}
{% endif %}
{% endif %}
{% if table.ipaddr_family_attr == 'true' %}
/**
* @brief IP address family for resource accounting
*
* @type sai_ip_addr_family_t
* @flags READ_ONLY
* @isresourcetype true
*/
SAI_{{ table.name | upper }}_ATTR_IP_ADDR_FAMILY,

{% endif %}
/**
* @brief End of attributes
Expand Down
2 changes: 2 additions & 0 deletions documentation/general/sdn-pipeline-basic-elements.md
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,8 @@ corresponding flow is created in the flow table.
### VM to VM (in VNET) communication

Please note that VNET to VNET is seen below. VNET Peering is identical and no datapath changes are needed. VNET Global Peering uses IPv6 as the tunnel and uses the same tunnel format.

![VMtoVM](./images/sdn/sdn-packet-transforms-vm-to-vm.svg)

### Internal Load balancer (in VNET) communication
Expand Down
Loading

0 comments on commit 1a6a5c2

Please sign in to comment.