Fixed p4-14 ecmp program and compiler outputs
Change-Id: Ib0201f0574ee1d1f69abb9a961fae021a388cdba
diff --git a/tools/test/p4src/p4-14/ecmp.p4 b/tools/test/p4src/p4-14/ecmp.p4
index aa3a315..38962e6 100644
--- a/tools/test/p4src/p4-14/ecmp.p4
+++ b/tools/test/p4src/p4-14/ecmp.p4
@@ -14,7 +14,7 @@
header_type ecmp_metadata_t {
fields {
- groupId : 16;
+ group_id : 16;
selector : 16;
}
}
@@ -36,8 +36,8 @@
output_width : 32;
}
-action ecmp_group(groupId) {
- modify_field(ecmp_metadata.groupId, groupId);
+action ecmp_group(group_id) {
+ modify_field(ecmp_metadata.group_id, group_id);
modify_field_with_hash_based_offset(ecmp_metadata.selector, 0, ecmp_hash, ECMP_GROUP_SIZE);
}
@@ -62,7 +62,7 @@
table ecmp_group_table {
reads {
- ecmp_metadata.groupId : exact;
+ ecmp_metadata.group_id : exact;
ecmp_metadata.selector : exact;
}
actions {