-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathExec.html
More file actions
38 lines (35 loc) · 1.26 KB
/
Copy pathExec.html
File metadata and controls
38 lines (35 loc) · 1.26 KB
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
<script type="text/javascript">
RED.nodes.registerType('execute',{
category: 'Docker',
color: '#F6CEF5',
defaults: {
name: {value:""}
},
inputs:1,
outputs:1,
icon: "docker.png",
label: function() {
return this.name||"execute";
}
});
</script>
<script type="text/x-red" data-template-name="execute">
<div class="form-row">
<label for="node-input-name"><i class="icon-tag"></i> Name</label>
<input type="text" id="node-input-name" placeholder="Name">
</div>
</script>
<script type="text/x-red" data-help-name="execute">
<p>A node that stops a docker container.</p>
<p>Requires:</p>
<p><code>payload.Service</code> Name of service.</p>
<p><code>payload.S_Tag</code> QinQ Service <code>802.1ad</code>tag of container.</p>
<p><code>payload.C_Tag</code> QinQ Customer <code>802.1q</code>tag of container.</p>
<p><code>payload.command</code> command to be executed in container.</p>
<code>{</code><br>
     <code> "Service":"vSG",</code><br>
     <code> "S_Tag":5,</code><br>
     <code> "C_Tag":7</code><br>
     <code> "command":"ls"</code><br>
<code>}</code>
</script>