-
Notifications
You must be signed in to change notification settings - Fork 311
code review for feature/roles-experiment #7
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
Conversation
Warning: returns hardcoded role string for now! new supportsRoleBasedEnforcement() hook that modules must override if they support role-based new returnRoleAttribute() hook to return the VSA to set Aruba support basic tests for the role-supported network devices
stub getRoleByName() for now
extension tests are now all running the same code and extension points only listed in a test list
connected to CLI/Web UI added to pf::SNMP base class added to switch factory
performs caching of the roles parsing on first hit
…eature/roles-experiment
|
@fgaudreault told me some issues to look at:
|
Implementation differs than other modules. AeroHive uses Tunnel Attributes for role assignment and this is what is also used for the VLAN assignments. Since we can't use both at the same time we favor roles if they are configured and VLANs otherwise. This meant overriding the base role support implementation from pf::SNMP into the AeroHive module.
lib/pf/SNMP.pm
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
r_assign? not really self-documenting ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed in 1fade0b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe reorder theses one for consistency purposes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think putting instance() on top makes it clearer that we are dealing with a singleton. pf::SwitchFactory is structured that way too.
|
thank you dear for your review |
|
my pleasure sir! |
…b_handles Feature/make reset db handles
ready for review.