Skip to content

Commit 2e0ed59

Browse files
sukhwinder33445nilmerg
authored andcommitted
Models: Add missing parent & child relation
1 parent 59126da commit 2e0ed59

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

library/Icingadb/Model/Hostgroup.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@ public function getDefaultSort()
7171
public function createBehaviors(Behaviors $behaviors)
7272
{
7373
$behaviors->add(new ReRoute([
74-
'servicegroup' => 'service.servicegroup'
74+
'servicegroup' => 'service.servicegroup',
75+
'parent' => 'host.from.to',
76+
'child' => 'host.to.from'
7577
]));
7678

7779
$behaviors->add(new Binary([

library/Icingadb/Model/Servicegroup.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@ public function createBehaviors(Behaviors $behaviors)
7272
{
7373
$behaviors->add(new ReRoute([
7474
'host' => 'service.host',
75-
'hostgroup' => 'service.hostgroup'
75+
'hostgroup' => 'service.hostgroup',
76+
'parent' => 'service.from.to',
77+
'child' => 'service.to.from'
7678
]));
7779

7880
$behaviors->add(new Binary([

0 commit comments

Comments
 (0)