Flow.java中
private static final String WEB_NAME = "Flows";//定义了在网页中显示时的名称
private static final String WEB_ID = "flows";
private static final short WEB_ORDER = 2;//定义了在网页中显示时的位置
@RequestMapping(value = "/main"). . . 与page.js中的
one.f.address = {
root : "/controller/web/flows",
flows : {
main : "/main",
flows : "/node-flows",
nodes : "/node-ports",
flow : "/flow",
modifyFlow : "/modifyFlow",
deleteFlows:"/flow/deleteFlows"
}
}相对应。
page.js中
//各个模块的id和名称
one.f.dashlet = {
flows : {
id : 'flows',
name : 'Flow Entries'
},
nodes : {
id : 'nodes',
name : 'Nodes'
},
detail : {
id : 'detail',
name : 'Flow Detail'
}
};
//各个模块的位置
one.f.menu = {
left : {
top : [
one.f.dashlet.flows
],
bottom : [
one.f.dashlet.nodes
]
},
right : {
top : [],
bottom : [
one.f.dashlet.detail
]
}
};
//定义了actions中的内容,我们可以自定义里面的内容
var actions = {
"" : "Please Select an Action",
"DROP" : "Drop",
"LOOPBACK" : "Loopback",
"FLOOD" : "Flood",
"SW_PATH" : "Software Path",
"HW_PATH" : "Hardware Path",
"CONTROLLER" : "Controller",
"OUTPUT" : "Add Output Ports",
"SET_VLAN_ID" : "Set VLAN ID",
"SET_VLAN_PCP" : "Set VLAN Priority",
"POP_VLAN" : "Strip VLAN Header",
"SET_DL_SRC" : "Modify Datalayer Source Address",
"SET_DL_DST" : "Modify Datalayer Destination Address",
"SET_NW_SRC" : "Modify Network Source Address",
"SET_NW_DST" :"Modify Network Destination Address",
"SET_NW_TOS" : "Modify ToS Bits",
"SET_TP_SRC" : "Modify Transport Source Port",
"SET_TP_DST" : "Modify Transport Destination Port"
};
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)