forked from martimy/flowmanager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflowform.html
154 lines (143 loc) · 5.65 KB
/
flowform.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
<!DOCTYPE html>
<meta charset="utf-8">
<html>
<head>
<title>Flow Control</title>
<link rel="shortcut icon" href="img/favicon.ico" type="image/x-icon">
<link rel="stylesheet" type="text/css" href="css\style.css?v2">
<link rel="stylesheet" type="text/css" href="css\menu.css?v2">
<link rel="stylesheet" type="text/css" href="css\form.css?v3">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<script src="js\jquery-3.3.1.min.js"></script>
</head>
<body>
<div class="container_16">
<div id="header" class="grid_16">
<h1>Flow Control</h1>
<input type="button" class="refresh" name="import" value="Import" style="display: none;">
</div>
<div id="menu" class="grid_2"></div>
<div id="main" class="grid_14">
<form id="flowmod" action="action" method="post">
<div class="formcontrol">
<input type="submit" value="Submit">
<input type="reset" value="Clear">
</div>
<div class="form">
<div class="fieldset">
<h1>Target:</h1>
<label for="dpid">Switch ID:</label><select type="number" id="dpid"></select><br>
<label for="table_id">Table ID:</label><input type="number" id="table_id" min="0" value="0">
</div>
<div class="fieldset">
<h1>Flow Operation:</h1>
<ul class="operation">
<li><input type="radio" id="op1" name="operation" value="add" checked="checked">
<label for="op1">Add</labeL></li>
<li><input type="radio" id="op2" name="operation" value="mod">
<label for="op2">Modify</labeL></li>
<li><input type="radio" id="op3" name="operation" value="modst">
<label for="op3">Modify Strict</labeL></li>
<li><input type="radio" id="op4" name="operation" value="del">
<label for="op4">Delete</labeL></li>
<li><input type="radio" id="op5" name="operation" value="delst">
<label for="op5">Delete Strict</labeL></li>
</ul>
</div>
<div class="fieldset">
<h1>Match Fields:</h1>
<input type="checkbox" id="matchcheckbox">
<label for="matchcheckbox">Match Any</label>
<div id="matchdiv">
<table id="matchtable" class="extendable">
<tr>
<th>Match Field</th><th>Value</th><th></th>
</tr>
<tr>
<td><input list="matchlist" name="matchfield"></td>
<td><input type="text" name="matchvalue"></td>
<td><input type="button" name="bmatch" value="+"></td>
</tr>
</table>
</div>
</div>
<div class="fieldset">
<label for="priority">Priority:</label>
<input type="number" id="priority" min="0" placeholder="entry priority"><br>
<label for="idle_timeout">Idle Timeout:</label>
<input type="number" id="idle_timeout" min="0" placeholder="seconds"><br>
<label for="hard_timeout">Hard Timeout:</label>
<input type="number" id="hard_timeout" min="0" placeholder="seconds"><br>
<label for="cookie">Cookie:</label>
<input type="number" id="cookie" min="0" placeholder="integer"><br>
<label for="cookie_mask" >Cookie Mask:</label>
<input type="number" id="cookie_mask" min="0" placeholder="integer"><br>
<span id="out_fields">
<label for="out_port">Output Port:</label>
<input type="number" id="out_port" min="-1" placeholder="port number or -1 for ANY" disabled="true"><br>
<label for="out_group">Output Group:</label>
<input type="number" id="out_group" min="-1" placeholder="group id or -1 for ANY" disabled="true"><br>
</span>
</div>
</div>
<div class="form">
<div class="fieldset">
<h1>Instructions:</h1>
<p>
<label for="meter_id">Goto Meter:</label>
<input type="number" id="meter_id" placeholder="meter-id or -1 for All"><br>
</p>
<table id="applytable" class="extendable">
<caption>Apply Actions:</caption>
<tr>
<th>Action Type</th><th>Value</th><th></th>
</tr>
<tr>
<td><input list="actionlist" name="applyaction"></td>
<td><input type="text" name="applyvalue"></td>
<td><input type="button" name="bapply" value="+"></td>
</tr>
</table>
<p>
<input type="checkbox" id="clearactions">
<label for="clearactions">Clear Actions</label>
</p>
<table id="writetable" class="extendable">
<caption>Write Actions:</caption>
<tr>
<th>Action Type</th><th>Value</th><th></th>
</tr>
<tr>
<td><input list="actionlist" name="writeaction"></td>
<td><input type="text" name="writevalue"></td>
<td><input type="button" name="bwrite" value="+"></td>
</tr>
</table>
<br>
<label for="metadata">Write Metadata:</label>
<input type="number" id="metadata" placeholder="integer or string"><br>
<label for="metadata_mask">Metadata Mask:</label>
<input type="number" id="metadata_mask" placeholder="integer or string"><br>
<label for="goto">Goto Table:</label>
<input type="number" id="goto" placeholder="table_id" min="1"><br>
</div>
<div class="fieldset">
<h1>Flags:</h1>
<input type="checkbox" id="SEND_FLOW_REM"><label for="SEND_FLOW_REM">Send flow-removed msg</label>
<input type="checkbox" id="CHECK_OVERLAP"><label for="CHECK_OVERLAP">Check overlapping</label>
<input type="checkbox" id="RESET_COUNTS"><label for="RESET_COUNTS">Reset counts</label>
<input type="checkbox" id="NO_PKT_COUNTS"><label for="NO_PKT_COUNTS">Do not count packets</label>
<input type="checkbox" id="NO_BYT_COUNTS"><label for="NO_BYT_COUNTS">Do not count bytes</label>
</div>
</div>
</form>
<div id="output"></div>
<div id="snackbar"></div>
</div>
</div>
<script src="js\mainmenu.js"></script>
<script src="js\flowfill.js?v2"></script>
<script src="js\flowmodvalidate.js?v2"></script>
<script src="js\flowmod.js?v2"></script>
</body>
</html>