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

This commit is contained in:
Sergio Betanzos authored and GitHub committed 2021-05-19 15:53:55 +02:00
1 parent 6f5f4caa6a
commit 2b7cb80f75
8 files changed
+30 -19

No files matched your search

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

@@ -44,7 +44,6 @@ const MainLayout = ({ endpoints, children }) => {
} = useAuth()
useEffect(() => {
console.log({ isLoading })
if (isLogged && !isLoginInProcess && !isLoading) {
getAuthInfo()
}
+15 -5
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'
}
}
+6 -12
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,
@@ -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',