-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(dedicated): add datacenter network tab
ref: MANAGER-16613 Signed-off-by: Paul Dickerson <paul.dickerson.ext@ovhcloud.com>
- Loading branch information
Paul Dickerson
committed
Feb 3, 2025
1 parent
1b893d0
commit 3a39302
Showing
26 changed files
with
324 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 1 addition & 4 deletions
5
...client/app/components/dedicated-cloud/datacenter/host/dedicatedCloud-datacenter-host.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
...ponents/dedicated-cloud/datacenter/network/dedicatedCloud-datacenter-network.component.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import controller from './dedicatedCloud-datacenter-network.controller'; | ||
import template from './dedicatedCloud-datacenter-network.html'; | ||
|
||
export default { | ||
bindings: { | ||
network: '<', | ||
}, | ||
controller, | ||
template, | ||
}; |
6 changes: 6 additions & 0 deletions
6
...onents/dedicated-cloud/datacenter/network/dedicatedCloud-datacenter-network.controller.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export default class { | ||
/* @ngInject */ | ||
constructor($state) { | ||
this.$state = $state; | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
.../app/components/dedicated-cloud/datacenter/network/dedicatedCloud-datacenter-network.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<div>Network Page</div> |
15 changes: 15 additions & 0 deletions
15
.../manager/apps/dedicated/client/app/components/dedicated-cloud/datacenter/network/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import angular from 'angular'; | ||
|
||
import 'angular-translate'; | ||
import '@ovh-ux/ui-kit'; | ||
|
||
import component from './dedicatedCloud-datacenter-network.component'; | ||
|
||
const moduleName = 'ovhManagerDedicatedCloudDatacenterNetworkComponent'; | ||
|
||
angular | ||
.module(moduleName, ['oui', 'pascalprecht.translate']) | ||
.component('ovhManagerDedicatedCloudDatacenterNetwork', component) | ||
.run(/* @ngTranslationsInject:json ./translations */); | ||
|
||
export default moduleName; |
10 changes: 10 additions & 0 deletions
10
...d/datacenter/network/onboarding/dedicatedCloud-datacenter-network-onboarding.component.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import controller from './dedicatedCloud-datacenter-network-onboarding.controller'; | ||
import template from './dedicatedCloud-datacenter-network-onboarding.html'; | ||
|
||
export default { | ||
bindings: { | ||
network: '<', | ||
}, | ||
controller, | ||
template, | ||
}; |
7 changes: 7 additions & 0 deletions
7
.../datacenter/network/onboarding/dedicatedCloud-datacenter-network-onboarding.controller.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export default class { | ||
/* @ngInject */ | ||
constructor($state, $translate) { | ||
this.$state = $state; | ||
this.$translate = $translate; | ||
} | ||
} |
36 changes: 36 additions & 0 deletions
36
...ted-cloud/datacenter/network/onboarding/dedicatedCloud-datacenter-network-onboarding.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<div | ||
data-translate="dedicatedCloud_datacenter_network_onboarding_description1" | ||
></div> | ||
<div | ||
data-translate="dedicatedCloud_datacenter_network_onboarding_description2" | ||
></div> | ||
<div | ||
data-translate="dedicatedCloud_datacenter_network_onboarding_cta_start" | ||
></div> | ||
<div | ||
data-translate="dedicatedCloud_datacenter_network_onboarding_cta_more" | ||
></div> | ||
<div | ||
data-translate="dedicatedCloud_datacenter_network_onboarding_doc_category_tutorial" | ||
></div> | ||
<div | ||
data-translate="dedicatedCloud_datacenter_network_onboarding_doc_category_faq" | ||
></div> | ||
<div | ||
data-translate="dedicatedCloud_datacenter_network_onboarding_doc1_title" | ||
></div> | ||
<div | ||
data-translate="dedicatedCloud_datacenter_network_onboarding_doc1_description" | ||
></div> | ||
<div | ||
data-translate="dedicatedCloud_datacenter_network_onboarding_doc2_title" | ||
></div> | ||
<div | ||
data-translate="dedicatedCloud_datacenter_network_onboarding_doc2_description" | ||
></div> | ||
<div | ||
data-translate="dedicatedCloud_datacenter_network_onboarding_doc3_title" | ||
></div> | ||
<div | ||
data-translate="dedicatedCloud_datacenter_network_onboarding_doc3_description" | ||
></div> |
16 changes: 16 additions & 0 deletions
16
...ps/dedicated/client/app/components/dedicated-cloud/datacenter/network/onboarding/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import angular from 'angular'; | ||
|
||
import 'angular-translate'; | ||
import '@ovh-ux/ui-kit'; | ||
|
||
import component from './dedicatedCloud-datacenter-network-onboarding.component'; | ||
|
||
const moduleName = | ||
'ovhManagerDedicatedCloudDatacenterNetworkOnboardingComponent'; | ||
|
||
angular | ||
.module(moduleName, ['oui', 'pascalprecht.translate']) | ||
.component('ovhManagerDedicatedCloudDatacenterNetworkOnboarding', component) | ||
.run(/* @ngTranslationsInject:json ./translations */); | ||
|
||
export default moduleName; |
14 changes: 14 additions & 0 deletions
14
...components/dedicated-cloud/datacenter/network/onboarding/translations/Messages_fr_FR.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"dedicatedCloud_datacenter_network_onboarding_description1": "En activant cette option, vous pourrez redimensionner, ajouter ou supprimer des NSX Edges selon vos besoins.", | ||
"dedicatedCloud_datacenter_network_onboarding_description2": "Cette option fonctionne sur un modèle de facturation à la consommation : toute modification de la configuration standard des NSX Edges entraînera des frais supplémentaires.", | ||
"dedicatedCloud_datacenter_network_onboarding_cta_start": "Commencer", | ||
"dedicatedCloud_datacenter_network_onboarding_cta_more": "En savoir plus", | ||
"dedicatedCloud_datacenter_network_onboarding_doc_category_tutorial": "Tutoriel", | ||
"dedicatedCloud_datacenter_network_onboarding_doc_category_faq": "FAQ", | ||
"dedicatedCloud_datacenter_network_onboarding_doc1_title": "Premier pas avec NSX", | ||
"dedicatedCloud_datacenter_network_onboarding_doc1_description": "Découvrez NSX, la solution de gestion de réseau Software-Defined Networking (SDN) fournie par VMware.", | ||
"dedicatedCloud_datacenter_network_onboarding_doc2_title": "Comment activer NSX-T sur la solution VMware on OVHcloud", | ||
"dedicatedCloud_datacenter_network_onboarding_doc2_description": "Découvrez comment attribuer des droits à un utilisateur et aux datacenters pour NSX-T", | ||
"dedicatedCloud_datacenter_network_onboarding_doc3_title": "NSX - FAQ", | ||
"dedicatedCloud_datacenter_network_onboarding_doc3_description": "Retrouvez les réponses aux questions les plus fréquentes sur l'utilisation de NSX au sein de l'écosystème Hosted Private Cloud." | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
...pps/dedicated/client/app/dedicatedCloud/datacenter/dedicatedCloud-datacenter.constants.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
export const NSX_COMPATIBLE_COMMERCIAL_RANGE = [ | ||
'NSX', | ||
'NSX-T', | ||
'SDDC 2016', | ||
'SDDC 2018', | ||
]; | ||
|
||
export default { | ||
NSX_COMPATIBLE_COMMERCIAL_RANGE, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
packages/manager/apps/dedicated/client/app/dedicatedCloud/datacenter/host/index copy.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import angular from 'angular'; | ||
import '@uirouter/angularjs'; | ||
import 'oclazyload'; | ||
|
||
const moduleName = 'ovhManagerDedicatedCloudDatacenterLazyloading'; | ||
|
||
angular.module(moduleName, ['ui.router', 'oc.lazyLoad']).config( | ||
/* @ngInject */ ($stateProvider) => { | ||
$stateProvider.state('app.dedicatedCloud.details.datacenter.details.**', { | ||
url: '/:datacenterId', | ||
lazyLoad: ($transition$) => { | ||
const $ocLazyLoad = $transition$.injector().get('$ocLazyLoad'); | ||
return import('./dedicatedCloud-datacenter.module').then((mod) => | ||
$ocLazyLoad.inject(mod.default || mod), | ||
); | ||
}, | ||
}); | ||
}, | ||
); | ||
|
||
export default moduleName; |
13 changes: 13 additions & 0 deletions
13
.../client/app/dedicatedCloud/datacenter/network/dedicatedCloud-datacenter-network.module.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import angular from 'angular'; | ||
|
||
import networkComponent from '../../../components/dedicated-cloud/datacenter/network'; | ||
import routing from './dedicatedCloud-datacenter-network.routing'; | ||
|
||
const moduleName = 'ovhManagerDedicatedCloudDatacenterNetworkModule'; | ||
|
||
angular | ||
.module(moduleName, [networkComponent]) | ||
.config(routing) | ||
.run(/* @ngTranslationsInject:json ./translations */); | ||
|
||
export default moduleName; |
27 changes: 27 additions & 0 deletions
27
...client/app/dedicatedCloud/datacenter/network/dedicatedCloud-datacenter-network.routing.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
export default /* @ngInject */ ($stateProvider) => { | ||
$stateProvider.state( | ||
'app.dedicatedCloud.details.datacenter.details.network', | ||
{ | ||
url: '/network', | ||
views: { | ||
pccDatacenterView: 'ovhManagerDedicatedCloudDatacenterNetwork', | ||
}, | ||
redirectTo: (transition) => | ||
transition | ||
.injector() | ||
.getAsync('resources') | ||
.then((resources) => | ||
resources.length === 0 | ||
? { | ||
state: | ||
'app.dedicatedCloud.details.datacenter.details.network.onboarding', | ||
} | ||
: false, | ||
), | ||
resolve: { | ||
resources: /* @ngInject */ ($http) => | ||
$http.get('/dedicatedCloud').then(({ data }) => data), | ||
}, | ||
}, | ||
); | ||
}; |
24 changes: 24 additions & 0 deletions
24
packages/manager/apps/dedicated/client/app/dedicatedCloud/datacenter/network/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import angular from 'angular'; | ||
import '@uirouter/angularjs'; | ||
import 'oclazyload'; | ||
|
||
const moduleName = 'ovhManagerDedicatedCloudDatacenterNetworkLazyloading'; | ||
|
||
angular.module(moduleName, ['ui.router', 'oc.lazyLoad']).config( | ||
/* @ngInject */ ($stateProvider) => { | ||
$stateProvider.state( | ||
'app.dedicatedCloud.details.datacenter.details.network.**', | ||
{ | ||
url: '/network', | ||
lazyLoad: ($transition$) => { | ||
const $ocLazyLoad = $transition$.injector().get('$ocLazyLoad'); | ||
return import( | ||
'./dedicatedCloud-datacenter-network.module' | ||
).then((mod) => $ocLazyLoad.inject(mod.default || mod)); | ||
}, | ||
}, | ||
); | ||
}, | ||
); | ||
|
||
export default moduleName; |
13 changes: 13 additions & 0 deletions
13
...loud/datacenter/network/onboarding/dedicatedCloud-datacenter-network-onboarding.module.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import angular from 'angular'; | ||
|
||
import networkOnboardingComponent from '../../../../components/dedicated-cloud/datacenter/network/onboarding'; | ||
import routing from './dedicatedCloud-datacenter-network-onboarding.routing'; | ||
|
||
const moduleName = 'ovhManagerDedicatedCloudDatacenterNetworkOnboardingModule'; | ||
|
||
angular | ||
.module(moduleName, [networkOnboardingComponent]) | ||
.config(routing) | ||
.run(/* @ngTranslationsInject:json ./translations */); | ||
|
||
export default moduleName; |
Oops, something went wrong.