UNPKG

@lightside-instruments/red-netconf

Version:
56 lines (54 loc) 2.28 kB
<script type="text/javascript"> RED.nodes.registerType('netconf session', { category: 'network', color: '#C0DEED', defaults: { name: { value: "" }, host: { value: "", required: true }, port: { value: 830, required: true, validate: RED.validators.number() }, username: { value: "", required: true }, password: { value: "", required: true }, privpath: { value: "", required: false }, pubpath: { value: "", required: false } }, inputs: 0, outputs: 1, icon: "font-awesome/fa-hashtag", label: function () { return this.name || "NETCONF Session"; } }); </script> <script type="text/html" data-template-name="netconf session"> <div class="form-row"> <label for="node-input-name"><i class="fa fa-tag"></i> Name</label> <input type="text" id="node-input-name" placeholder="Name"> </div> <div class="form-row"> <label for="node-input-host"><i class="fa fa-globe"></i> Hostname/Address</label> <input type="text" id="node-input-host" placeholder="Hostname/Address"> </div> <div class="form-row"> <label for="node-input-port"><i class="fa fa-random"></i> Port</label> <input type="number" id="node-input-port" placeholder="830"> </div> <div class="form-row"> <label for="node-input-username"><i class="fa fa-user"></i> Username</label> <input type="text" id="node-input-username" placeholder="Username"> </div> <div class="form-row"> <label for="node-input-password"><i class="fa fa-lock"></i> Password</label> <input type="password" id="node-input-password" placeholder="Password"> </div> <div class="form-row"> <label for="node-input-privpath"><i class="fa fa-key"></i> Private Key Path</label> <input type="text" id="node-input-privpath" placeholder="Path"> </div> <div class="form-row"> <label for="node-input-pubpath"><i class="fa fa-key"></i> Public Key Path</label> <input type="text" id="node-input-pubpath" placeholder="Path"> </div> </script> <script type="text/html" data-help-name="netconf session"> <p>A node that contains a netconf session</p> </script>