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

Feature/1797 register node return status #1798

Merged
merged 4 commits into from
Jan 18, 2017

Conversation

dwlfrth
Copy link
Contributor

@dwlfrth dwlfrth commented Oct 26, 2016

Description

pf::node::node_register is able to return status message to inform end users on failure per example

Impacts

There shouldn't be any impact since we basically return a string along with the return code (0,1)
Should just make sure all the caller are handling the return code as they should (curl ?)
pf::node::node_register flow

  • registration
  • auto-registration
  • wispr
  • node import
  • administration interface (user / nodes)
  • portal
  • vlan_filters (action = register_node)
  • wmi (action = dynamic_register_node)

Delete branch after merge

YES

NEWS file entries

Enhancements

  • Portal is giving more indication on node registration error

Bug Fixes

@dwlfrth
Copy link
Contributor Author

dwlfrth commented Oct 26, 2016

Please review

@julsemaan
Copy link
Collaborator

I'm not sure this really fixes #1797

It talks about showing the status page in the body but about reworking the node_register in the title.

Something is up...

@dwlfrth
Copy link
Contributor Author

dwlfrth commented Oct 28, 2016

It partially fixes it in the sense that node_register will return a message to the portal.
Second part (subject of the issue) is more a customization and may be a good thing to be integrated in PacketFence codebase... having the message to display a link to the "status" page.

@dwlfrth
Copy link
Contributor Author

dwlfrth commented Dec 6, 2016

Bump

return (0);
$status_msg = "max nodes per pid met or exceeded";
$logger->error( "$status_msg - registration of $mac to $pid failed" );
return (0, $status_msg);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Use the FALSE Luke

@julsemaan
Copy link
Collaborator

Just fix the constant and we're good to merge

@dwlfrth
Copy link
Contributor Author

dwlfrth commented Jan 16, 2017

Sup !

@julsemaan
Copy link
Collaborator

@extrafu
Copy link
Member

extrafu commented Jan 18, 2017

Bump

@julsemaan julsemaan merged commit f090b7c into devel Jan 18, 2017
@dwlfrth dwlfrth deleted the feature/1797-register_node_return_status branch May 24, 2017 19:19
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

3 participants