Add seed code for sdnr app based on ONF Centennial
[ccsdk/apps.git] / sdnr / wireless-transport / code-Carbon-SR1 / apps / dlux / dlux-web / src / common / general / common.general.filters.js
1 define(['common/general/common.general.module'], function(general) {
2
3   // Filter to return only valid ports (like id != 0)
4   general.filter('noRootPorts', function () {
5     return function (input) {
6       if (!input) {
7         return;
8       }
9       return input.filter(function(port) {
10         return port.nodeconnector.id !== "0" ? port : null;
11       });
12     };
13   });
14
15 });