From e486ef4c2268c3392e78669b7360b26cd453ad30 Mon Sep 17 00:00:00 2001 From: Nick Peelman Date: Mon, 3 Jul 2023 06:08:58 -0400 Subject: [PATCH] Fix MPLS Tab Display for Nokia devices using LDP and not RSVP (#15128) --- app/Http/Controllers/Device/Tabs/RoutingController.php | 2 +- includes/html/pages/device/routing/mpls.inc.php | 6 +++--- includes/html/pages/routing/mpls.inc.php | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/Http/Controllers/Device/Tabs/RoutingController.php b/app/Http/Controllers/Device/Tabs/RoutingController.php index ed867e5672..f318f63a6c 100644 --- a/app/Http/Controllers/Device/Tabs/RoutingController.php +++ b/app/Http/Controllers/Device/Tabs/RoutingController.php @@ -44,7 +44,7 @@ class RoutingController implements DeviceTab 'bgp' => $device->bgppeers()->count(), 'vrf' => $device->vrfs()->count(), 'cef' => $device->cefSwitching()->count(), - 'mpls' => $device->mplsLsps()->count(), + 'mpls' => $device->mplsServices()->count(), 'cisco-otv' => Component::query()->where('device_id', $device->device_id)->where('type', 'Cisco-OTV')->count(), 'loadbalancer_rservers' => $device->rServers()->count(), 'ipsec_tunnels' => $device->ipsecTunnels()->count(), diff --git a/includes/html/pages/device/routing/mpls.inc.php b/includes/html/pages/device/routing/mpls.inc.php index b17d68ebec..a792be8acc 100644 --- a/includes/html/pages/device/routing/mpls.inc.php +++ b/includes/html/pages/device/routing/mpls.inc.php @@ -292,7 +292,7 @@ if ($vars['view'] == 'sdps') { } // end sdps view if ($vars['view'] == 'sdpbinds') { - echo 'Service Id + echo 'Service ID SDP Bind Id Bind Type VC Type @@ -358,7 +358,7 @@ sapDown: The SAP associated with the service is down.">Oper State } // end sdpbinds view if ($vars['view'] == 'services') { - echo 'Service Id + echo 'Service ID Type Customer Admin Status @@ -436,7 +436,7 @@ vprn services are up when the service is administratively up however routing fun } // end services view if ($vars['view'] == 'saps') { - echo 'Service Id + echo 'Service ID SAP Port Encapsulation Type diff --git a/includes/html/pages/routing/mpls.inc.php b/includes/html/pages/routing/mpls.inc.php index 0c4ef7bcac..e076f17cb7 100644 --- a/includes/html/pages/routing/mpls.inc.php +++ b/includes/html/pages/routing/mpls.inc.php @@ -292,7 +292,7 @@ if ($vars['view'] == 'sdps') { if ($vars['view'] == 'sdpbinds') { echo 'Device - Service Id + Service ID SDP Bind Id Bind Type VC Type @@ -361,7 +361,7 @@ sapDown: The SAP associated with the service is down.">Oper State if ($vars['view'] == 'services') { echo 'Device - Service Id + Service ID Type Customer Admin Status @@ -442,7 +442,7 @@ vprn services are up when the service is administratively up however routing fun if ($vars['view'] == 'saps') { echo 'Device - Service Id + Service ID SAP Port Encapsulation Type