Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(dedicated): add slaac option to vrack ipv6 block #11663

Merged
merged 3 commits into from May 14, 2024

Conversation

mhelhali-soufien
Copy link
Contributor

Question Answer
Branch? feat/additional-ipv6-feature
Bug fix? no
New feature? yes
Breaking change? no
Tickets Fix #MANAGER-13715
License BSD 3-Clause
  • Try to keep pull requests small so they can be easily reviewed.
  • Commits are signed-off
  • Only FR translations have been updated
  • Branch is up-to-date with target branch
  • Lint has passed locally
  • Standalone app was ran and tested locally
  • Ticket reference is mentioned in linked commits (internal only)
  • Breaking change is mentioned in relevant commits

Description

Related

  ref: MANAGER-13715

Signed-off-by: mhalheli soufien <mhalheli.soufien@gmail.com>
@mhelhali-soufien mhelhali-soufien requested a review from a team as a code owner May 7, 2024 06:41
@mhelhali-soufien mhelhali-soufien requested review from qpavy, MaximeBajeux and anooparveti and removed request for a team May 7, 2024 06:41
data-ng-bind="::bridged.bridgedSubrange"
></span>
<span
>SLAAC
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SLAAC is not in a constants file?

@@ -21,7 +21,33 @@ export default class VrackAssignedIpCtrl {
}

$onInit() {
this.refreshData();
this.vrackAssignedIpv6Service
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should bridgedSubranges be instead in the resolve of the routing file?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nop because this component is not loaded at the init of the page doing like this allow to make the call only when we open the ipv6 detail

&__sub-item {
display: flex;
justify-content: end;
flex-flow: wrap;
}

&__subnet {
&__subnet,
&__subrang {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
&__subrang {
&__subrange {

@@ -8,14 +8,61 @@
<span data-translate="vrack__assigned-ipv6_add_subnet"></span>
</button>
</div>
<!-- subridg -->
<li
class="vrack__assigned-ipv6__subrang"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
class="vrack__assigned-ipv6__subrang"
class="vrack__assigned-ipv6__subrange"

data-ng-bind="::bridged.bridgedSubrange"
></span>
<span
>SLAAC
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
>SLAAC
>$ctrl.label.SLAAC

Put this in constant file

<oui-switch
data-ng-hide="bridged.loading"
model="bridged.model"
on-change="$ctrl.toggleSubrang(bridged)"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
on-change="$ctrl.toggleSubrang(bridged)"
on-change="$ctrl.toggleSubrange(bridged)"

></button>
<script
type="text/ng-template"
id="vrack__assigned-ipv6__subrang_slaac_help.html"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
id="vrack__assigned-ipv6__subrang_slaac_help.html"
id="vrack__assigned-ipv6__subrange_slaac_help.html"

id="vrack__assigned-ipv6__subrang_slaac_help.html"
>
<p
data-translate="vrack__assigned-ipv6__subrang_slaac_help"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
data-translate="vrack__assigned-ipv6__subrang_slaac_help"
data-translate="vrack_assigned_ipv6_subrange_slaac_help"

@@ -61,6 +90,34 @@ export default class VrackAssignedIpCtrl {
};
}

toggleSubrang(bridgedSubrange) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
toggleSubrang(bridgedSubrange) {
toggleSubrange(bridgedSubrange) {

data-ng-repeat="bridged in $ctrl.bridgedSubranges track by $index"
>
<span
class="vrack__assigned-ipv6__subrang__title"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
class="vrack__assigned-ipv6__subrang__title"
class="vrack__assigned-ipv6__subrange__title"

<a
class="oui-link_icon"
aria-hidden="true"
data-ng-href="{{$ctrl.localZoneUrl}}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it the good URL ?

>
<span class="oui-icon oui-icon-book ml-0" aria-hidden="true"></span>
<span
data-translate="vrack__assigned-ipv6__subrang_slaac_help_tooltip_link"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
data-translate="vrack__assigned-ipv6__subrang_slaac_help_tooltip_link"
data-translate="vrack_assigned_ipv6_subrange_slaac_help_tooltip_link"

Copy link

sonarcloud bot commented May 13, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
B Reliability Rating on New Code (required ≥ A)

See analysis details on SonarCloud

Catch issues before they fail your Quality Gate with our IDE extension SonarLint

@mhelhali-soufien mhelhali-soufien merged commit 1f1a214 into feat/additional-ipv6-feature May 14, 2024
12 of 14 checks passed
@mhelhali-soufien mhelhali-soufien deleted the feat/MANAGER-13715 branch May 14, 2024 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants