3 Star 0 Fork 0

openEuler-competition / Summer2021-No.116 支持iSula的软件定义网络仿真器扩展设计

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.md 1.29 KB
一键复制 编辑 原始数据 按行查看 历史
Constantine3 提交于 2021-09-30 14:49 . feat: add REST

NestNet

安装

操作系统要求:openEuler 21.03Python3

nestnet

git clone -b master https://github.com/Constantine3/NestNet.git
cd NestNet
sudo bash util/install.sh -a

iSulad

openEuler 21.03自带yum源下的iSulad存在问题,使用官方提供的yum源下载

cat << EOF > /etc/yum.repos.d/openEuler.repo
[openEuler]
baseurl=https://repo.openeuler.org/openEuler-20.03-LTS/OS/\$basearch
enabled=1
EOF
yum install -y iSulad

若中途停止重新运行第三步,需清空NestNet同级目录下的依赖文件夹。

配置

官方提供镜像失效,替换Pod-sandbox-image,须手动更改isula配置

vim /etc/isulad/daemon.json
# 修改"pod-sandbox-image"
"pod-sandbox-image":"kylefoxaustin/ubuntu-amd64-vnc-lxde-complete:latest"
systemctl restart isulad

运行

NestNet目录下运行

# 无参数运行
./run-nestnet
# 使用isula作为终端
./run-nestnet --host isula
# 配置isula
./run-nestnet --host isula --config nestnet/examples/config_example.json

测试

进入nestnet测试网络是否连接成功

nestnet> pingall
*** Ping: testing ping reachability
h1 -> h2 
h2 -> h1 
*** Results: 0% dropped (2/2 received)

使用exit正常退出

nestnet> exit
1
https://gitee.com/openeuler-competition/summer2021-116.git
git@gitee.com:openeuler-competition/summer2021-116.git
openeuler-competition
summer2021-116
Summer2021-No.116 支持iSula的软件定义网络仿真器扩展设计
master

搜索帮助