diff options
author | Chinthakayala, Sheshashailavas <sc2914@att.com> | 2017-04-07 08:18:56 -0900 |
---|---|---|
committer | Chinthakayala, Sheshashailavas <sc2914@att.com> | 2017-04-07 08:21:54 -0900 |
commit | 4cc1e4b946aedcf6c34550d1903e9bd13e6e160b (patch) | |
tree | 4f3369f83f381734fb9aebc3ae9d8ed026c21c99 /dgbuilder/nodes/dge/dgelogic/breakNode.js | |
parent | 76825594b6c95cf09d5142c0f9384a5b2bf9721e (diff) |
[SDNC-5] added yang upload
and added break node
Change-Id: I8d36b5d400a51a6ebc248b100f04284cf27abcad
Signed-off-by: Chinthakayala, Sheshashailavas <sc2914@att.com>
Former-commit-id: ae6804f3c5805f78198b26de88ceb6dfa9bb335b
Diffstat (limited to 'dgbuilder/nodes/dge/dgelogic/breakNode.js')
-rw-r--r-- | dgbuilder/nodes/dge/dgelogic/breakNode.js | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/dgbuilder/nodes/dge/dgelogic/breakNode.js b/dgbuilder/nodes/dge/dgelogic/breakNode.js new file mode 100644 index 00000000..9b0b1b00 --- /dev/null +++ b/dgbuilder/nodes/dge/dgelogic/breakNode.js @@ -0,0 +1,31 @@ +/** + * Copyright 2013 IBM Corp. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + **/ + +module.exports = function(RED) { + "use strict"; + var util = require("util"); + var vm = require("vm"); + + function breakNode(n) { + RED.nodes.createNode(this,n); + this.name = n.name; + this.xml = n.xml; + this.topic = n.topic; + } + + RED.nodes.registerType("break",breakNode); + // RED.library.register("block"); +} |