Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
Temporarily remove network_limit_per_host
Browse files Browse the repository at this point in the history
This commit can be reverted later, once the backend support is in.
  • Loading branch information
mzazrivec committed Apr 18, 2019
1 parent a7343ca commit 929d236
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ Array [
"cpu_limit_per_host": 10,
"max_concurrent_tasks_per_ems": 10,
"max_concurrent_tasks_per_host": 10,
"network_limit_per_host": 10,
},
},
},
Expand Down Expand Up @@ -119,7 +118,6 @@ Array [
"cpu_limit_per_host": 10,
"max_concurrent_tasks_per_ems": 10,
"max_concurrent_tasks_per_host": 10,
"network_limit_per_host": 10,
},
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,6 @@ Object {
"cpu_limit_per_host": 10,
"max_concurrent_tasks_per_ems": 10,
"max_concurrent_tasks_per_host": 10,
"network_limit_per_host": 10,
},
"savingSettingsRejected": false,
"servers": Array [],
Expand Down Expand Up @@ -436,7 +435,6 @@ Object {
"cpu_limit_per_host": 10,
"max_concurrent_tasks_per_ems": 10,
"max_concurrent_tasks_per_host": 10,
"network_limit_per_host": 10,
},
"savingSettingsRejected": false,
"servers": Array [],
Expand Down
6 changes: 2 additions & 4 deletions app/javascript/react/screens/App/Settings/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,15 @@ import { RHV, OPENSTACK } from '../../../../common/constants';
export const getFormValuesFromApiSettings = payload => ({
max_concurrent_tasks_per_host: payload.transformation.limits.max_concurrent_tasks_per_host,
max_concurrent_tasks_per_ems: payload.transformation.limits.max_concurrent_tasks_per_ems,
cpu_limit_per_host: payload.transformation.limits.cpu_limit_per_host,
network_limit_per_host: payload.transformation.limits.network_limit_per_host
cpu_limit_per_host: payload.transformation.limits.cpu_limit_per_host
});

export const getApiSettingsFromFormValues = values => ({
transformation: {
limits: {
max_concurrent_tasks_per_host: values.max_concurrent_tasks_per_host,
max_concurrent_tasks_per_ems: values.max_concurrent_tasks_per_ems,
cpu_limit_per_host: values.cpu_limit_per_host,
network_limit_per_host: values.network_limit_per_host
cpu_limit_per_host: values.cpu_limit_per_host
}
}
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,16 +126,6 @@ export class GeneralSettings extends React.Component {
inputEnabledFunction={inputEnabledFunction}
initialUncheckedValue="unlimited"
/>
<Field
id="network_limit_per_host"
name="network_limit_per_host"
component={TextInputWithCheckbox}
validate={validatePercentInput}
label={__('Total network throughput')}
postfix={__('MB/s')}
inputEnabledFunction={inputEnabledFunction}
initialUncheckedValue="unlimited"
/>
<Form.FormGroup className="col-md-1 pull-left" style={{ marginTop: '40px' }}>
<Button
bsStyle="primary"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,16 +133,6 @@ exports[`GeneralSettings component renders the general settings page 1`] = `
postfix=""
validate={[Function]}
/>
<Field
component={[Function]}
id="network_limit_per_host"
initialUncheckedValue="unlimited"
inputEnabledFunction={[Function]}
label="Total network throughput"
name="network_limit_per_host"
postfix="MB/s"
validate={[Function]}
/>
<FormGroup
bsClass="form-group"
className="col-md-1 pull-left"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ export const settings = Immutable({
limits: {
max_concurrent_tasks_per_host: 10,
max_concurrent_tasks_per_ems: 10,
cpu_limit_per_host: 10,
network_limit_per_host: 10
cpu_limit_per_host: 10
}
},
otherSettings: {
Expand Down

0 comments on commit 929d236

Please sign in to comment.