-
Notifications
You must be signed in to change notification settings - Fork 343
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
Vqfx qcow #234
Open
htj
wants to merge
5
commits into
vrnetlab:master
Choose a base branch
from
NORDUnet:vqfx_qcow
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Vqfx qcow #234
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
55ebe47
remove unused imports in launch_vqfx.py
3e75595
rename launch_vqfx.py to launch.py like it is called all other places
8d324c3
change python3-ipy requirement to python3
1a8e78e
convert vqfx build to use qcow, switch to new naming/version scheme, …
ea964f5
fix build issue due to common files not being included (reported by k…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,31 @@ | ||
VENDOR=Juniper | ||
NAME=vQFX | ||
IMAGE_FORMAT=vmdk | ||
IMAGE_GLOB=*.vmdk | ||
IMAGE_FORMAT=qcow2 | ||
IMAGE_GLOB=*.qcow2 | ||
|
||
# match versions like: | ||
# vqfx10k-re-15.1X53-D60.vmdk | ||
VERSION=$(shell echo $(IMAGE) | sed -e 's/^vqfx10k-re-\([0-9][0-9]\.[0-9][A-Z][0-9]\+\(\.[0-9]\+\)\?\(-D[0-9]\+\)\)[^0-9].*$$/\1/') | ||
# New vqfx are named: vqfx-19.4R1.10-re-qemu.qcow2 | ||
VERSION=$(shell echo $(IMAGE) | sed -e 's/^vqfx-//'|sed -e 's/-re-qemu.qcow2//' ) | ||
|
||
PFE_BASE_VERSION=$(shell echo $VERSION | sed -e s'/.*//') | ||
PFE_IMAGE=$(shell ls vqfx-$(PFE_BASE_VERSION)*-pfe-qemu.qcow*) | ||
|
||
-include ../makefile-sanity.include | ||
-include ../makefile.include | ||
|
||
# vqfx10k-pfe-20160609-2.vmdk | ||
# TODO: we should make sure we only copy one PFE image (the latest?), in case there are many | ||
docker-pre-build: | ||
cp vqfx10k-pfe*.vmdk docker/ | ||
echo "pfe $(PFE_IMAGE)" | ||
cp vqfx*-pfe*.qcow* docker/ | ||
echo "image $(IMAGE)" | ||
echo "version $(VERSION)" | ||
|
||
# mostly copied from makefile.include, i wish this was easier to change | ||
docker-build-common: docker-clean-build docker-pre-build | ||
@if [ -z "$$IMAGE" ]; then echo "ERROR: No IMAGE specified"; exit 1; fi | ||
@if [ "$(IMAGE)" = "$(VERSION)" ]; then echo "ERROR: Incorrect version string ($(IMAGE)). The regexp for extracting version information is likely incorrect, check the regexp in the Makefile or open an issue at https://github.com/plajjan/vrnetlab/issues/new including the image file name you are using."; exit 1; fi | ||
@echo "Building docker image using $(IMAGE) as $(REGISTRY)vr-$(VR_NAME):$(VERSION)" | ||
cp ../common/* docker/ | ||
$(MAKE) IMAGE=$$IMAGE docker-build-image-copy | ||
(cd docker; docker build --build-arg http_proxy=$(http_proxy) --build-arg https_proxy=$(https_proxy) --build-arg RE_IMAGE=$(IMAGE) --build-arg PFE_IMAGE=$(PFE_IMAGE) -t $(REGISTRY)vr-$(VR_NAME):$(VERSION) .) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
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.
Why do you need to copy this. What is it that you want to change / inject? Turn whatever that is into a variable?
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.
Hi Kristian. I've changed jobs, so probably won't spend anymore time on this. Hope all is well.