-
Notifications
You must be signed in to change notification settings - Fork 131
Trigger trickiness
Kristian Larsson edited this page Aug 1, 2014
·
3 revisions
Prefix FOO is resized to cover more prefixes. We determine number of used addresses by selecting all direct chil dren and suming their size. Direct children is determined by "within prefix FOO and indent = FOO.indent + 1", no w since 1.0.0.0/24 is already a child of FOO it will have FOO.indent+1 while 1.0.2.0/24 which wasn't a child of FOO will have indent = FOO.indent
OLD:
1.0.0.0/16 0
1.0.0.0/23 1 FOO
1.0.0.0/24 2 DIRECT CHILD
1.0.1.0/24 2 DIRECT CHILD
1.0.2.0/24 1
1.0.3.0/24 1
NEW:
1.0.0.0/16 0
1.0.0.0/22 1 FOO
1.0.0.0/24 2 OLD DIRECT CHILD
1.0.1.0/24 2 OLD DIRECT CHILD
1.0.2.0/24 2 NEW DIRECT CHILD
1.0.3.0/24 2 NEW DIRECT CHILD
OLD:
1.0.0.0/16 0
1.0.0.0/22 1
1.0.0.0/23 2 FOO
1.0.0.0/24 3 DIRECT CHILD
1.0.1.0/24 3 DIRECT CHILD
1.0.2.0/24 2
1.0.3.0/24 2
NEW:
1.0.0.0/16 0
1.0.0.0/21 1 FOO
1.0.0.0/22 2 DIRECT CHILD
1.0.0.0/24 3 OLD DIRECT CHILD
1.0.1.0/24 3 OLD DIRECT CHILD
1.0.2.0/24 3
1.0.3.0/24 3