コード例 #1
0
ファイル: triggers.php プロジェクト: peter-volkov/RackTrack
function trigger_ip()
{
    if (count(getObjectIPAllocationList(getBypassValue()))) {
        return 'std';
    }
    // Only hide the tab, if there are no addresses allocated.
    return considerConfiguredConstraint(spotEntity('object', getBypassValue()), 'IPV4OBJ_LISTSRC') ? 'std' : '';
}
コード例 #2
0
ファイル: triggers.php プロジェクト: rhysm/racktables
function trigger_ip()
{
    assertUIntArg('object_id');
    if (count(getObjectIPAllocationList($_REQUEST['object_id']))) {
        return 'std';
    }
    // Only hide the tab, if there are no addresses allocated.
    return considerConfiguredConstraint(spotEntity('object', $_REQUEST['object_id']), 'IPV4OBJ_LISTSRC') ? 'std' : '';
}
コード例 #3
0
ファイル: database.php プロジェクト: rhysm/racktables
function getObjectIPAllocations($object_id)
{
    return amplifyAllocationList(getObjectIPAllocationList($object_id));
}