mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 00:24:40 +00:00
interfaces: straighten out VIP status ACLs
This commit is contained in:
parent
01e3d9eccc
commit
f10604cda7
@ -367,7 +367,7 @@ class InterfaceController extends ApiControllerBase
|
||||
return array("message" => "error");
|
||||
}
|
||||
|
||||
public function getPfSyncNodesAction()
|
||||
public function getPfsyncNodesAction()
|
||||
{
|
||||
$records = json_decode((new Backend())->configdRun("filter list pfsync json"), true) ?? [];
|
||||
$records = !empty($records['nodes']) ? $records['nodes'] : [];
|
||||
|
||||
@ -11,8 +11,8 @@
|
||||
<patterns>
|
||||
<pattern>ui/diagnostics/interface/vip</pattern>
|
||||
<pattern>api/diagnostics/interface/carp_status</pattern>
|
||||
<pattern>api/diagnostics/interface/get_vip_status/*</pattern>
|
||||
<pattern>api/diagnostics/interface/get_pfsync_nodes/*</pattern>
|
||||
<pattern>api/diagnostics/interface/get_vip_status</pattern>
|
||||
<pattern>api/diagnostics/interface/get_pfsync_nodes</pattern>
|
||||
</patterns>
|
||||
</page-status-carp>
|
||||
<page-interfaces-vxlan>
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<script>
|
||||
$( document ).ready(function() {
|
||||
$("#grid-vips").UIBootgrid({
|
||||
search:'/api/diagnostics/interface/get_vip_status/',
|
||||
search:'/api/diagnostics/interface/get_vip_status',
|
||||
options:{
|
||||
requestHandler: function(request){
|
||||
if ( $('#mode_filter').val().length > 0) {
|
||||
@ -55,7 +55,7 @@
|
||||
}
|
||||
});
|
||||
$("#grid-pfsyncnodes").UIBootgrid({
|
||||
search:'/api/diagnostics/interface/get_pfsync_nodes/',
|
||||
search:'/api/diagnostics/interface/get_pfsync_nodes',
|
||||
});
|
||||
$("#mode_filter").change(function(){
|
||||
$('#grid-vips').bootgrid('reload');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user