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

use docker API #185

Open
wants to merge 33 commits into
base: master
Choose a base branch
from
Open

Conversation

bdreisbach
Copy link

use the docker python module/API to interact with the docker daemon. this allows you to deploy topologies on a remote docker host.

--dry-run has been removed as i wasnt sure there is value in printing out api commands. i am happy to add it back if preferred.

i wasnt able to find an API option for setting a network alias, so that is missing here.

any feedback is appreciated, specifically related to exception handling(i'm not at all an expert).

bradd and others added 30 commits December 5, 2018 15:08
So this should hopefully handle a dropped connection quite a bit better in
vr-xcon by not repeatedly (busy loop style) trying to read from a dead socket.
Instead we close it and can listen for a new connection!
So this feels a little backwards but implementing a hub is just vastly
simpler than a learning bridge (well, switch) and I need ethernet
segments for emulating internet exchanges etc so here we are.
So that seems backwards but as it turns out the qemu socket listener
only listens for IPv4 so we make our lives a lot easier by just
resolving IPv4.
In Python 3.6 and newer the order of items in a dict is as the insertion
order. In earlier versions it is undefined and becomes sort of random.
We avoid that by using OrderedDict which is backwards compatible with
3.5
topomachine should now be able to run vr-xcon hubs based on hub
definitions in the hltopo file!
This fixes misalignment of vmx v17.2R1.13 interfaces for xconn
It just echoes the version variable that we extracted from the image
filename. This makes it easier to debug the extraction regexp.
Can be two digits in third position and not just one.
qemu only listens on IPv4 so we got to do v4 only!
1. some url is written in absolute path, so check if it's relative or
   not.
2. add version string to local filename. A target file is typically
   "combined-ext4.img.gz"

Signed-off-by: Naoya Kaneko <enukane@glenda9.org>
fix openwrt's download.py: download url and local filename
Sanity checking was a little too strict. This is better and should allow
for default config of gitlab.com, which doesn't include port numbers.
jmussmann pushed a commit to jmussmann/vrnetlab that referenced this pull request Apr 10, 2024
* sros README: add vsr-i to variants

* sros README: added CF disks

* minor edits

---------

Co-authored-by: Roman Dodin <dodin.roman@gmail.com>
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

6 participants