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

PP: Cannot change partner duplex port on edit #307

Closed
barryo opened this issue Mar 27, 2017 · 1 comment
Closed

PP: Cannot change partner duplex port on edit #307

barryo opened this issue Mar 27, 2017 · 1 comment

Comments

@barryo
Copy link
Member

barryo commented Mar 27, 2017

After setting a duplex port, we need to cease it and then re-create it to change the duplex port. It would be useful to be able to edit this.

Something like altering the logic in store() to the following plus adding code to handle the change.

// display the duplex port if set or the list of all duplex ports available
$partnerPorts = D2EM::getRepository( PatchPanelPort::class )->getPatchPanelPortAvailableForDuplex( $ppp->getPatchPanel()->getId(), $ppp->getId() );

if( $ppp->hasSlavePort() ) {
    $partnerPorts = array_merge( [ $ppp->getDuplexSlavePortId() => $ppp->getDuplexSlavePortName() ], $partnerPorts );
}
@yannrobin
Copy link
Contributor

  • adding possibility to remove a partner port from a patch panel port

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants