From efa037d34be7b1570efdc767c79fad8d4005f10e Mon Sep 17 00:00:00 2001 From: Michael Lando Date: Sun, 19 Feb 2017 12:57:33 +0200 Subject: Add new code new version Change-Id: Ic02a76313503b526f17c3df29eb387a29fe6a42a Signed-off-by: Michael Lando --- .../SoftwareProductComponentsNICEditorView.jsx | 322 +++++++++++++++++++++ 1 file changed, 322 insertions(+) create mode 100644 openecomp-ui/src/sdc-app/onboarding/softwareProduct/components/network/SoftwareProductComponentsNICEditorView.jsx (limited to 'openecomp-ui/src/sdc-app/onboarding/softwareProduct/components/network/SoftwareProductComponentsNICEditorView.jsx') diff --git a/openecomp-ui/src/sdc-app/onboarding/softwareProduct/components/network/SoftwareProductComponentsNICEditorView.jsx b/openecomp-ui/src/sdc-app/onboarding/softwareProduct/components/network/SoftwareProductComponentsNICEditorView.jsx new file mode 100644 index 0000000000..7393a835dc --- /dev/null +++ b/openecomp-ui/src/sdc-app/onboarding/softwareProduct/components/network/SoftwareProductComponentsNICEditorView.jsx @@ -0,0 +1,322 @@ +import React from 'react'; + +import i18n from 'nfvo-utils/i18n/i18n.js'; + +import ValidationForm from 'nfvo-components/input/validation/ValidationForm.jsx'; +import ValidationInput from 'nfvo-components/input/validation/ValidationInput.jsx'; + +class SoftwareProductComponentsNetworkEditorView extends React.Component { + + render() { + let {onCancel, isReadOnlyMode} = this.props; + return ( + this.submit() } + onReset={ () => onCancel() } + labledButtons={true} + isReadOnlyMode={isReadOnlyMode} + className='vsp-components-network-editor'> + {this.renderEditorFields()} + + ); + } + + renderEditorFields() { + let {data = {}, qdata = {}, qschema = {}, onQDataChanged, onDataChanged, isReadOnlyMode} = this.props; + let {name, description, networkName} = data; + let netWorkValues = [{ + enum: networkName, + title: networkName + }]; + return( +
+
+
+ +
+
+ onDataChanged({description})} + disabled={isReadOnlyMode} + type='textarea'/> +
+
+ +
+
{i18n('Protocols')}
+
+ +
+
+ +
+
+
+
{i18n('IP Configuration')}
+
+ +
+
+ +
+
+
+
+
{i18n('Network')}
+
+ +
+
+ +
+
+ +
+
+ +
+
{i18n('Sizing')}
+
+ +
+
+ +
+
{i18n('Inflow Traffic per second')}
+
+ +
+
+
+
{i18n('Packets')}
+
+
+
+ +
+
+ +
+
+
+
+
+
{i18n('Bytes')}
+
+
+
+ + +
+
+ +
+
+
+
+ +
+
{i18n('Outflow Traffic per second')}
+
+ +
+
+
+
{i18n('Packets')}
+
+
+
+ +
+
+ + +
+
+
+
+
+
{i18n('Bytes')}
+
+
+
+ + +
+
+ + +
+
+
+
+ +
+
{i18n('Flow Length')}
+
+ +
+
+
+
{i18n('Packets')}
+
+
+
+ +
+
+ +
+
+
+
+
+
{i18n('Bytes')}
+
+
+
+ + +
+
+ +
+
+
+
+ +
+
+
+
{i18n('Acceptable Jitter')}
+
+
+
+ +
+
+ +
+
+ +
+
+
+
+
+
{i18n('Acceptable Packet Loss %')}
+
+
+
+ +
+
+
+
+
+
+ + ); + } + submit() { + let {data, qdata, onSubmit} = this.props; + onSubmit({data, qdata}); + } +} + +export default SoftwareProductComponentsNetworkEditorView; -- cgit 1.2.3-korg