Skip to content

Commit

Permalink
docs: updated gRPC edit link example to start session properly before…
Browse files Browse the repository at this point in the history
… trying to edit something that will not exist
  • Loading branch information
bharnden committed Dec 14, 2024
1 parent d17d7ad commit dc88d8e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/grpc.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,9 @@ iface1 = iface_helper.create_iface(node1.id, 0)
iface2 = iface_helper.create_iface(node2.id, 0)
link = session.add_link(node1=node1, node2=node2, iface1=iface1, iface2=iface2)

# start session
core.start_session(session)

# configuring during runtime
link.options.loss = 10.0
core.edit_link(session.id, link)
Expand Down

0 comments on commit dc88d8e

Please sign in to comment.