r2105 + count routers in address refc
authorDenis Ovsienko <infrastation@yandex.ru>
Sun, 3 Aug 2008 11:25:47 +0000 (11:25 +0000)
committerDenis Ovsienko <infrastation@yandex.ru>
Sun, 3 Aug 2008 11:25:47 +0000 (11:25 +0000)
inc/interface.php

index 798eec631e578717c341b611a79e6f83015b5ca9..028ec8e92859654f9880e58d9ad393de47e94b67 100644 (file)
@@ -811,7 +811,8 @@ function renderRackObject ($object_id = 0)
 
                        $virtnum = countRefsOfType($addr['references'], 'virtual', 'eq');
                        $sharednum = countRefsOfType($addr['references'], 'shared', 'eq');
-                       $regnum = countRefsOfType($addr['references'], 'regular', 'eq');
+                       $regnum = countRefsOfType($addr['references'], 'regular', 'eq') +
+                               countRefsOfType($addr['references'], 'router', 'eq');
                        $notvirtnum = countRefsOfType($addr['references'], 'virtual', 'neq');
 
                        echo "<tr";