New session implementation

A new implementation of a TR-069 session that takes a declarative
approach and makes use of the new data model functions.
This commit is contained in:
Zaid Abdulla committed 2016-03-06 04:41:10 +03:00
1 parent 89e323ae7c
commit 5acfa206f2
3 files changed
+474

No files matched your search

+9
View File
@@ -162,6 +162,14 @@ pathOverlap = (a, b, start) ->
return res
parsePath = (path) ->
parts = if path == '' then [] else path.split('.')
for p, i in parts
parts[i] = null if p == '*'
return parts
exports.UNDEFINED_TYPE = UNDEFINED_TYPE
exports.NULL_TYPE = NULL_TYPE
exports.NUMBER_TYPE = NUMBER_TYPE
@@ -172,3 +180,4 @@ exports.REGEXP_TYPE = REGEXP_TYPE
exports.typeOf = typeOf
exports.pathOverlap = pathOverlap
exports.parsePath = parsePath