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

Table app args refactoring #293

Merged
merged 4 commits into from
Nov 4, 2014
Merged

Conversation

eugeneia
Copy link
Member

This PR does three things:

  1. Makes core.config.parse_app_arg a NOOP for tables.
  2. Use parse_app_arg everywhere loadstring was previously used (also use uniform terminology for app arg handling: An app receives an arg, parses it using parse_app_arg which yields a conf.)
  3. Replace ([[{...}]]):format(...) constructs with table literals across the codebase.

Sorry for the big sweep, I felt it was a good point to clean up and unify the code. This might trigger a lot of merge conflicts, so merge this late then I can sort them out myself.

function Intel82599:new (args)
args = config.parse_app_arg(args)
function Intel82599:new (arg)
conf = config.parse_app_arg(arg)
Copy link
Member

Choose a reason for hiding this comment

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

This should be local conf

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh, yes. Good catch! Will have to see if I repeated that mistake.

@lukego
Copy link
Member

lukego commented Oct 22, 2014

Great hacking! This looks like a solid, bold improvement :-)

function Intel82599:new (args)
args = config.parse_app_arg(args)
function Intel82599:new (arg)
local conf = config.parse_app_arg(arg)
Copy link
Member Author

Choose a reason for hiding this comment

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

Prepend local.

@lukego
Copy link
Member

lukego commented Oct 31, 2014

Good time to rebase and merge?

@eugeneia
Copy link
Member Author

Sure why not! :)

@eugeneia eugeneia mentioned this pull request Nov 4, 2014
lukego added a commit that referenced this pull request Nov 4, 2014
@lukego lukego merged commit 4d32a37 into snabbco:master Nov 4, 2014
javierguerragiraldez added a commit to javierguerragiraldez/snabbswitch that referenced this pull request Nov 5, 2014
javierguerragiraldez added a commit to javierguerragiraldez/snabbswitch that referenced this pull request Nov 5, 2014
eugeneia added a commit to eugeneia/snabb that referenced this pull request Nov 5, 2014
lukego added a commit that referenced this pull request Nov 5, 2014
[keyed_ipv6_tunnel] Fix regression introduced by #293 URGENT
javierguerragiraldez added a commit to javierguerragiraldez/snabbswitch that referenced this pull request Nov 8, 2014
javierguerragiraldez added a commit to javierguerragiraldez/snabbswitch that referenced this pull request Nov 8, 2014
javierguerragiraldez added a commit to javierguerragiraldez/snabbswitch that referenced this pull request Nov 11, 2014
javierguerragiraldez added a commit to javierguerragiraldez/snabbswitch that referenced this pull request Nov 11, 2014
javierguerragiraldez added a commit to javierguerragiraldez/snabbswitch that referenced this pull request Nov 18, 2014
javierguerragiraldez added a commit to javierguerragiraldez/snabbswitch that referenced this pull request Nov 18, 2014
javierguerragiraldez added a commit to javierguerragiraldez/snabbswitch that referenced this pull request Nov 27, 2014
javierguerragiraldez added a commit to javierguerragiraldez/snabbswitch that referenced this pull request Nov 27, 2014
javierguerragiraldez added a commit to javierguerragiraldez/snabbswitch that referenced this pull request Dec 23, 2014
javierguerragiraldez added a commit to javierguerragiraldez/snabbswitch that referenced this pull request Dec 23, 2014
javierguerragiraldez added a commit to javierguerragiraldez/snabbswitch that referenced this pull request Jan 11, 2015
javierguerragiraldez added a commit to javierguerragiraldez/snabbswitch that referenced this pull request Jan 25, 2015
javierguerragiraldez added a commit to javierguerragiraldez/snabbswitch that referenced this pull request Feb 17, 2015
@eugeneia eugeneia deleted the app-table-args branch May 20, 2015 12:52
lukego pushed a commit that referenced this pull request Mar 29, 2016
Clear out Flags in ICMPv4 echo-reply
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.

2 participants