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

Send out model and config messages through registrar #293

Merged
merged 5 commits into from
Apr 13, 2022

Conversation

grafnu
Copy link
Collaborator

@grafnu grafnu commented Apr 12, 2022

Initial use is for testing front-end work -- to make sure they can pull messages to properly set-up their internal DB.

Field declaredField = target.getClass().getDeclaredField(fieldName);
sendSubMessage(localDevice, subType, subfolder, declaredField.get(target));
} catch (Exception e) {
throw new RuntimeException(String.format("Getting field %s from target %s%n", fieldName, target.getClass().getSimpleName()));
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this %s%n correct / is it some magic with the getSimpleName()?

@grafnu
Copy link
Collaborator Author

grafnu commented Apr 13, 2022 via email

@grafnu grafnu merged commit 588d573 into faucetsdn:master Apr 13, 2022
@grafnu grafnu deleted the modeler branch April 13, 2022 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants