/** * Delete an Access Switch */ public function delete(AccessSwitch $access_switch) { flash()->info('Deleted', $access_switch->name . ' was deleted.'); logThis('Switch ' . $access_switch->name . ' deleted.'); $access_switch->delete(); return redirect()->route('access_switches.index'); }
/** * Show the application dashboard. * * @return \Illuminate\Http\Response */ public function index() { $provisioning = Provisioning::all(); $customers = Customer::all(); $onts = Ont::all(); $accessSwitches = AccessSwitch::all(); $dhcpSharedNetworks = DhcpSharedNetwork::all(); $ipaddresses = Ipaddress::all(); $ports = AccessSwitchPort::all(); return view('home')->with('provisioning', $provisioning)->with('customers', $customers)->with('onts', $onts)->with('accessSwitches', $accessSwitches)->with('ports', $ports)->with('ipaddresses', $ipaddresses)->with('DhcpSharedNetworks', $dhcpSharedNetworks); }
/** * Get interfaces info */ public function interfaces(AccessSwitch $access_switch) { return $access_switch->interfaces(); }