Skip to content

GitLab

  • Menu
项目 Groups 代码片段
    • 正在加载...
  • 帮助
    • 帮助
    • 支持
    • 社区论坛
    • 提交反馈
  • 登录/注册
  • P p4-learning
  • Project information
    • Project information
    • 动态
    • 标记
    • 成员
  • 仓库
    • 仓库
    • 文件
    • 提交
    • 分支
    • 标签
    • 贡献者
    • 分支图
    • 比较
  • 议题 0
    • 议题 0
    • 列表
    • 看板
    • 服务台
    • 里程碑
  • 合并请求 0
    • 合并请求 0
  • CI/CD
    • CI/CD
    • 流水线
    • 作业
    • 计划
  • Deployments
    • Deployments
    • 环境
    • 发布
  • Monitor
    • Monitor
    • 事件
  • 软件包与镜像库
    • 软件包与镜像库
    • 软件包注册表
    • Infrastructure Registry
  • 分析
    • 分析
    • CI/CD
    • 仓库
    • Value stream
  • Wiki
    • Wiki
  • 代码片段
    • 代码片段
  • 动态
  • 分支图
  • 创建新议题
  • 作业
  • 提交
  • 议题看板
收起侧边栏
  • p4git
  • p4-learning
  • Wiki
  • Migrate to the new version

Migrate to the new version · 变更

页面历史
Updated Migrate to the new version (markdown) 编辑于 7月 28, 2021 作者: Jurij Nota's avatar Jurij Nota
Show whitespace changes
Inline Side-by-side
Showing with 16 addition and 2 deletion
+16 -2
  • Migrate-to-the-new-version.md Migrate-to-the-new-version.md +16 -2
  • 未找到文件。
Migrate-to-the-new-version.md
查看页面@ 5c41cea3
## What's new?
The recent update of *P4-Utils* introduced several improvements, affecting also *P4-Learning*. Hereafter, we list the most important ones.
The recent update of *P4-Utils* introduced several improvements, affecting also *P4-Learning*. Indeed *P4-Utils* is the framework that makes it possible to create virtual networks with P4 devices in them. Hereafter, we list the most important features that were added or modified.
- 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`.
......@@ -14,4 +15,17 @@ All the exercises and examples have been already migrated to the new version and
## How to migrate to the new version?
Hereafter we list the changes between the old and the new JSON network configuration file.
\ No newline at end of file
### JSON Network Configuration
Consider that `obj` is the main object contained in the JSON network configuration file (i.e. the `p4app.json` file contained in the folders of the exercises and examples). Then we have the following changes between the old and the new JSON network configuration file. Please remember that, because of these changes, **old JSON configuration files are not compatible with the new version of *P4-Utils***.
|Old version|New version|Description|
|:---------:|:---------:|:----------|
|`obj["program"]`|`obj["p4_src"]`|Path to the default program for all the P4 switches (string).|
|`obj["switch"]`|*removed*|Default switch binary to use (string).|
|`obj["compiler"]`|*removed*|Default compiler binary to use (string).|
|`obj["options"]`|*removed*|Options to pass to the compiler (string).|
|`obj["switch_cli"]`|*removed*|Default *Thrift* client binary to configure the switches (string).|
|*not present*|`obj["tasks_file"]`|Path to the file that contains all the tasks to execute in the nodes (string).|
### Python Network Configuration
克隆仓库

P4-Learning Documentation

  • Getting Started
  • Migrate to the new version
  • BMv2 Simple Switch
  • Control Plane
  • Debugging and Troubleshooting

沪ICP备19002739号