Allow switch to start without JSON configuration #281
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The target binaries can be started without an input JSON config by using
the --no-p4 command line flag. Until a config has been pushed to the
switch however, no traffic can be processed. The start_and_return method
was modified to block until a config is pushed. The virtual method that
needs to be implemented by switches was renamed
start_and_return_. Similarly the receive virtual method was also renamed
receive_. This means that existing target switches outside of this repo
will need to be updated.
The tools (e.g. runtime CLI) needed to be updated as a result to support
the empty config case.