... | ... | @@ -4,7 +4,7 @@ The recent update of *P4-Utils* introduced several improvements, affecting also |
|
|
|
|
|
- The application is now fully based on Python 3.
|
|
|
- The legacy JSON configuration file used to start the network has been simplified.
|
|
|
- The network can now be started also using a Python script and the new `NetworAPI`.
|
|
|
- The network can now be started also using a Python script and the new [`NetworkAPI`](https://nsg-ethz.github.io/p4-utils/p4utils.mininetlib.network_API.html#p4utils.mininetlib.network_API.NetworkAPI).
|
|
|
- *P4Runtime* is currently available with a new API.
|
|
|
- The legacy *Thrift* API and client have been kept for compytibility reasons.
|
|
|
|
... | ... | @@ -50,7 +50,7 @@ A more detailed description of the options available with the JSON network confi |
|
|
|
|
|
### Python Network Configuration
|
|
|
|
|
|
Beside having the JSON network configuration method, one can start and initialize the network using also the new Python `NetworkAPI`. Hereafter, we provide a simple example of how to use this new method and a comparison with the legacy JSON configuration file. If you need more information and instructions on how to exploit this functionality, please check out the [***P4-Utils* documentation**](https://nsg-ethz.github.io/p4-utils/usage.html#python).
|
|
|
Beside having the JSON network configuration method, one can start and initialize the network using also the new Python [`NetworkAPI`](https://nsg-ethz.github.io/p4-utils/p4utils.mininetlib.network_API.html#p4utils.mininetlib.network_API.NetworkAPI). Hereafter, we provide a simple example of how to use this new method and a comparison with the legacy JSON configuration file. If you need more information and instructions on how to exploit this functionality, please check out the [***P4-Utils* documentation**](https://nsg-ethz.github.io/p4-utils/usage.html#python).
|
|
|
|
|
|
```python
|
|
|
from p4utils.mininetlib.network_API import NetworkAPI
|
... | ... | |