1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-16 22:50:10 +03:00

F OpenNebula/one#5387: Support vultr into fireedge (#1234)

This commit is contained in:
Sergio Betanzos 2021-05-19 15:53:55 +02:00 committed by GitHub
parent 6f5f4caa6a
commit 2b7cb80f75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 30 additions and 19 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

View File

@ -44,7 +44,6 @@ const MainLayout = ({ endpoints, children }) => {
} = useAuth()
useEffect(() => {
console.log({ isLoading })
if (isLogged && !isLoginInProcess && !isLoading) {
getAuthInfo()
}

View File

@ -65,15 +65,25 @@ export const PROVIDERS_TYPES = {
name: 'Dummy',
color: '#436637'
},
google: {
id: 'google',
name: 'Google Cloud',
color: '#dc382b'
},
digitalocean: {
id: 'digitalocean',
name: 'Digital Ocean',
color: '#2381f5'
},
vultr_virtual: {
id: 'vultr_virtual',
name: 'Vultr Cloud Compute',
color: '#7ea3ca'
},
vultr_metal: {
id: 'vultr_metal',
name: 'Vultr Bare Metal',
color: '#7ea3ca'
},
google: {
id: 'google',
name: 'Google Cloud',
color: '#dc382b'
}
}

View File

@ -1,4 +1,8 @@
import PropTypes from 'prop-types'
import { PROVIDERS_TYPES, PROVISIONS_TYPES } from 'client/constants'
const providerTypes = Object.values(PROVIDERS_TYPES).map(({ id }) => id)
const provisionTypes = Object.values(PROVISIONS_TYPES).map(({ id }) => id)
export const UserInput = PropTypes.shape({
name: PropTypes.string.isRequired,
@ -27,19 +31,9 @@ export const UserInput = PropTypes.shape({
])
})
export const ProviderType = PropTypes.oneOf([
'aws',
'packet',
'dummy',
'google',
'digitalocean'
])
export const ProviderType = PropTypes.oneOf(providerTypes)
export const ProvisionType = PropTypes.oneOf([
'metal',
'virtual',
'onprem'
])
export const ProvisionType = PropTypes.oneOf(provisionTypes)
export const ProvisionHost = PropTypes.shape({
im_mad: PropTypes.string.isRequired,

View File

@ -12,7 +12,15 @@
/* See the License for the specific language governing permissions and */
/* limitations under the License. */
/* -------------------------------------------------------------------------- */
const providers = ['aws', 'packet', 'dummy', 'google', 'digitalocean']
const providers = [
'aws',
'packet',
'dummy',
'google',
'digitalocean',
'vultr_virtual',
'vultr_metal'
]
const provider = {
id: '/Provider',