Skip to content

Commit

Permalink
fix: readme next-hop typo (#347)
Browse files Browse the repository at this point in the history
  • Loading branch information
marco-minervino authored May 21, 2024
1 parent 27a84dc commit daf530f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ print(ocni.network_instances.network_instance['a'].protocols.protocol['STATIC DE

The `filter` keyword allows only the elements within the class that have changed (are not empty or their default) to be output - rather than all possible elements.

The `next-hops` element in this model is another list. This keyed data structure acts like a Python dictionary, and has the special method `add` to add items to it. YANG `leaf-list` types use the standard Python list `append` method to add items to it. Equally, a `list` can be iterated through using the same methods as a dictionary, for example, using `items()`:
The `next-hop` element in this model is another list. This keyed data structure acts like a Python dictionary, and has the special method `add` to add items to it. YANG `leaf-list` types use the standard Python list `append` method to add items to it. Equally, a `list` can be iterated through using the same methods as a dictionary, for example, using `items()`:

```python
# Add a set of next_hops
Expand Down

0 comments on commit daf530f

Please sign in to comment.