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:
1 parent
89e323ae7c
commit
5acfa206f2
3 files changed
+474
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user