summaryrefslogtreecommitdiff
path: root/httemplate
diff options
context:
space:
mode:
authorJonathan Prykop <jonathan@freeside.biz>2015-03-20 15:25:12 -0500
committerJonathan Prykop <jonathan@freeside.biz>2015-04-13 18:10:53 -0500
commite05e4f1f0d6a704db4d3c8b3d9a851216569580c (patch)
treeedec92f98981d2dda27c2adc4a91838b92364e7f /httemplate
parentf279524a0b3266ae4fb342ab8ee26d8918c86c75 (diff)
RT#18834 Cacti integration [phase one, simple but stable]
Diffstat (limited to 'httemplate')
-rw-r--r--httemplate/view/svc_broadband.cgi11
1 files changed, 11 insertions, 0 deletions
diff --git a/httemplate/view/svc_broadband.cgi b/httemplate/view/svc_broadband.cgi
index 70c0b5300..9fe10bd3a 100644
--- a/httemplate/view/svc_broadband.cgi
+++ b/httemplate/view/svc_broadband.cgi
@@ -72,6 +72,17 @@ sub ip_addr {
my $out = $ip_addr;
$out .= ' (' . include('/elements/popup_link-ping.html', ip => $ip_addr) . ')'
if $ip_addr;
+ if ($svc->cacti_leaf_id) {
+ # should only ever be one, but not sure if that is enforced
+ my ($cacti) = $svc->cust_svc->part_svc->part_export('cacti');
+ $out .= ' (<A HREF="'
+ . $cacti->option('base_url')
+ . 'graph_view.php?action=tree&tree_id='
+ . $cacti->option('tree_id')
+ . '&leaf_id='
+ . $svc->cacti_leaf_id
+ . '">cacti</A>)';
+ }
if ( my $addr_block = $svc->addr_block ) {
$out .= '<br>Netmask: ' . $addr_block->NetAddr->mask .
'<br>Gateway: ' . $addr_block->ip_gateway;