horizon 用户面板的虚拟机 & 卷 功能中,虚拟机的数据经常到卷列表,卷的数据经常到了虚拟机列表中,顾把这个菜单拆分为两个菜单 虚拟机 卷
一.虚拟机
这个沿用原来的目录
只需修改菜单和页面字样
1.horizon/dashboards/nova//instances_and_volumes/panel.py
2.horizon/dashboards/nova/templates/nova/instances_and_volumes/index.html
二.卷
新建目录volumes,然后把instances_and_volumes的内容拷贝过来进行修改
1.修改文件:horizon/dashboards/nova/dashboard.py 增加菜单
2.新建文件夹:horizon/dashboards/nova/volumes 修改 panel.py tables.py urls.py views.py 涉及到路径的部分
3.新建文件夹:horizon/dashboards/nova/templates/nova/volumes 修改index.html