File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- diff --git a/p4runtime_sh/p4runtime.py b/p4runtime_sh/p4runtime.py
2- index f858f92..85ef344 100644
3- --- a/p4runtime_sh/p4runtime.py
4- +++ b/p4runtime_sh/p4runtime.py
5- @@ -289,7 +289,7 @@ class P4RuntimeClient:
6- with open(p4info_path, 'r') as f1:
7- with open(bin_path, 'rb') as f2:
8- try:
9- - google.protobuf.text_format.Merge(f1.read(), req.config.p4info)
10- + google.protobuf.text_format.Merge(f1.read(), req.config.p4info, allow_unknown_field=True)
11- except google.protobuf.text_format.ParseError:
12- logging.error("Error when parsing P4Info")
13- raise
141diff --git a/setup.cfg b/setup.cfg
152index 07c5c31..8a9dad9 100644
163--- a/setup.cfg
Original file line number Diff line number Diff line change @@ -15,10 +15,10 @@ change_owner_and_group_of_venv_lib_python3_files() {
1515set -xe
1616
1717# Src
18- BMV2_COMMIT=" ec328ab87fe10cea0e061a4d9eb15408fb49729a " # 2024-Sep-01
19- PI_COMMIT=" 5eae9c84d7a55f9554775e498b9146f67eac7bd4" # 2024-Sep-01
20- P4C_COMMIT=" 3306162acd9e60e06c5574dc28d67df71a78cbad " # 2024-Sep-01
21- PTF_COMMIT=" c554f83685186be4cfa9387eb5d6d700d2bbd7c0" # 2024-Sep-01
18+ BMV2_COMMIT=" 199af48e04ea8747f8296bdc51c2ce16bb96cb04 " # 2024-Oct-15
19+ PI_COMMIT=" 5eae9c84d7a55f9554775e498b9146f67eac7bd4" # 2024-Oct-15
20+ P4C_COMMIT=" 9fcd7d5985f22ae6ff437a30dfb613a1347d8079 " # 2024-Oct-15
21+ PTF_COMMIT=" c554f83685186be4cfa9387eb5d6d700d2bbd7c0" # 2024-Oct-15
2222
2323# Versions installed by Ubuntu apt
2424PROTOBUF_PKG_VERSION=" 3.21.12"
@@ -121,7 +121,10 @@ debug_dump_many_install_files $HOME/usr-local-5-after-behavioral-model.txt
121121# Starting in 2019-Nov, Python3 version of Scapy is needed for `cd
122122# p4c/build ; make check` to succeed.
123123# ply package is needed for ebpf and ubpf backend tests to pass
124- pip3 install scapy ply
124+ # TODO: It appears that some changes were made from scapy 2.5.0 to
125+ # 2.6.0 that require changes in P4 open source tools in order to use
126+ # version 2.6.0. Until those changes are made, install scapy 2.5.0.
127+ pip3 install scapy==2.5.0 ply
125128git clone https://github.com/p4lang/p4c
126129cd p4c
127130git checkout ${P4C_COMMIT}
You can’t perform that action at this time.
0 commit comments