noc.core.confdb.db.node

Module Contents

class noc.core.confdb.db.node.Node(token)

Bases: object

__slots__ = ['token', 'children']
__repr__(self)
find(self, token)

Find children Node by token

Parameters:token – token as string
Returns:Child Node or None
find_path(self, tokens)

Recursively find by path :param tokens: Iterable containing tokens :return:

merge_children(self, children)

Apply children :param children: Dict of children :return:

static clean_token(token)
insert(self, tokens)

Populate children with tokens :param tokens: tuple of tokens :return: Inserted node

iter_nodes(self)
has_children(self)
trim(self)