File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -26,10 +26,13 @@ def tearDown(self) -> None:
2626
2727 def createWriteRequest (self ) -> p4runtime_pb2 .WriteRequest :
2828 req = p4runtime_pb2 .WriteRequest ()
29+ election_id = req .election_id
30+ election_id .high = 0
31+ election_id .low = 1
2932 req .device_id = self .device_id
3033 return req
3134
32- def setupCtrlPlane (self ) -> None :
35+ def setupCtrlPlane (self ):
3336 initial_config_path = ptfutils .test_param_get ("initial_config_file" )
3437 assert initial_config_path is not None
3538 req = self .createWriteRequest ()
@@ -38,9 +41,7 @@ def setupCtrlPlane(self) -> None:
3841 initial_config_file .read (), req , allow_unknown_field = True
3942 )
4043 testutils .log .info ("Initial configuration %s" , req )
41- raise NotImplementedError (
42- "Fill the missing parts of this method where you send this request to BMv2."
43- )
44+ return self .write_request (req )
4445
4546 def sendCtrlPlaneUpdate (self ) -> None :
4647 pass
You can’t perform that action at this time.
0 commit comments