-
Notifications
You must be signed in to change notification settings - Fork 12
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
Mixed flavor #166
Draft
iljarotar
wants to merge
27
commits into
master
Choose a base branch
from
mixed-flavor
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.
+173
−46
Draft
Mixed flavor #166
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
03f2c2e
Add mixed topology
iljarotar a83c050
Merge branch 'master' into mixed-flavor
iljarotar 39113d6
Merge branch 'master' into mixed-flavor
iljarotar 302a67a
Merge branch 'master' into mixed-flavor
majst01 9a73529
Merge branch 'master' of github.com:metal-stack/mini-lab into mixed-f…
061d0ca
enable simulated migration in mixed setup
75d4d26
remove -cvx suffix from leaf02
e076f9e
fix wrong hostname
80f23c7
remove mixed setup from integration tests for now
31314a5
readme
e4cac40
remove orphans
6d22f23
remove 3rd machine
8ec92c2
remove remove-orphans flag
0d5e3cb
fix missing vrf for sonic
ef080bd
fix json syntax error
6848bea
formatting
43616d3
always pull sonic image
56a133f
another try
4b7d5f8
back to previous sonic config
6f19254
use Ethernet120 as uplink in sonic
09fb815
adjust sonic topo
25a1354
typo
a6b96ca
Merge branch 'master' into mixed-flavor
robertvolkmann 5d4e412
metal-api override
4255fef
adapt port config
e033e9c
formatting
624e8af
Merge branch 'master' into mixed-flavor
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
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
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 |
---|---|---|
|
@@ -85,6 +85,6 @@ | |
retries: 60 | ||
delay: 3 | ||
until: | ||
- lookup('metal', 'search', 'switch', api_url=metal_partition_metal_api_protocol+'://'+metal_partition_metal_api_addr+':'+metal_partition_metal_api_port|string+metal_partition_metal_api_basepath, api_hmac=metal_partition_metal_api_hmac_edit_key) | length == 2 | ||
- lookup('metal', 'search', 'switch', api_url=metal_partition_metal_api_protocol+'://'+metal_partition_metal_api_addr+':'+metal_partition_metal_api_port|string+metal_partition_metal_api_basepath, api_hmac=metal_partition_metal_api_hmac_edit_key) | length >= 2 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could you count the number of leaves? |
||
- lookup('metal', 'search', 'switch', api_url=metal_partition_metal_api_protocol+'://'+metal_partition_metal_api_addr+':'+metal_partition_metal_api_port|string+metal_partition_metal_api_basepath, api_hmac=metal_partition_metal_api_hmac_edit_key)[0]["last_sync"] != None | ||
- lookup('metal', 'search', 'switch', api_url=metal_partition_metal_api_protocol+'://'+metal_partition_metal_api_addr+':'+metal_partition_metal_api_port|string+metal_partition_metal_api_basepath, api_hmac=metal_partition_metal_api_hmac_edit_key)[1]["last_sync"] != None |
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
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
lo: 10.0.0.11 | ||
asn: 4200000011 | ||
metal_core_cidr: 10.0.1.1/{{ metal_core_cidr_mask }} | ||
|
||
dhcp_default_lease_time: 600 | ||
dhcp_max_lease_time: 600 | ||
dhcp_subnets: | ||
- network: 10.0.1.0 | ||
netmask: 255.255.255.0 | ||
range: | ||
begin: 10.0.1.2 | ||
end: 10.0.1.255 | ||
options: | ||
- routers {{ dhcp_server_ip }} | ||
- domain-name-servers 1.1.1.1, 8.8.8.8 |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
lo: 10.0.0.13 | ||
asn: 4200000013 | ||
metal_core_cidr: 10.0.1.255/{{ metal_core_cidr_mask }} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This makes no sense. Why we need a different CIDR? |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
lo: 10.0.0.12 | ||
asn: 4200000012 | ||
metal_core_cidr: 10.0.1.128/{{ metal_core_cidr_mask }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
name: mini-lab | ||
prefix: "" | ||
|
||
mgmt: | ||
network: bridge | ||
|
||
topology: | ||
kinds: | ||
cvx: | ||
image: networkop/cx:3.7.0 | ||
kernel: docker.io/grigoriymikh/kernel:4.1.0 | ||
sandbox: grigoriymikh/sandbox:latest | ||
labels: | ||
ansible-group: cumulus | ||
binds: | ||
- apt-transport-https.tar.gz:/root/jessie-apt-transport-fix.tar.gz | ||
- files/ssh/id_rsa.pub:/root/.ssh/authorized_keys | ||
linux: | ||
image: ${MINI_LAB_VM_IMAGE} | ||
|
||
nodes: | ||
mini_lab_ext: | ||
kind: bridge | ||
leaf01: | ||
kind: cvx | ||
leaf02: | ||
kind: cvx | ||
leaf02-sonic: | ||
kind: linux | ||
image: ${MINI_LAB_SONIC_IMAGE} | ||
labels: | ||
ansible-group: sonic | ||
binds: | ||
- /dev:/dev | ||
- files/ssh/id_rsa.pub:/authorized_keys | ||
inet: | ||
kind: linux | ||
image: quay.io/frrouting/frr:10.0.1 | ||
binds: | ||
- files/inet/daemons:/etc/frr/daemons | ||
- files/inet/frr.conf:/etc/frr/frr.conf | ||
- files/inet/vtysh.conf:/etc/frr/vtysh.conf | ||
- files/inet/network.sh:/root/network.sh | ||
exec: | ||
- sh /root/network.sh | ||
vms: | ||
kind: linux | ||
binds: | ||
- /dev:/dev | ||
- scripts:/mini-lab | ||
www: | ||
kind: linux | ||
image: docker.io/library/nginx:alpine-slim | ||
network-mode: none | ||
exec: | ||
- ip addr add 203.0.113.3/24 dev ext | ||
- ip route add 203.0.113.128/25 via 203.0.113.2 dev ext | ||
|
||
links: | ||
- endpoints: ["inet:ext", "mini_lab_ext:inet"] | ||
mtu: 9000 | ||
- endpoints: ["www:ext", "mini_lab_ext:www"] | ||
|
||
- endpoints: ["leaf01:swp1", "vms:lan0"] | ||
- endpoints: ["leaf01:swp2", "vms:lan2"] | ||
- endpoints: ["leaf01:swp31", "inet:eth1"] | ||
|
||
- endpoints: ["leaf02:swp1", "vms:lan1"] | ||
- endpoints: ["leaf02:swp2", "vms:lan3"] | ||
- endpoints: ["leaf02:swp31", "inet:eth2"] | ||
|
||
- endpoints: ["leaf02-sonic:eth1", "vms:lan4"] | ||
- endpoints: ["leaf02-sonic:eth2", "vms:lan5"] | ||
- endpoints: ["leaf02-sonic:eth3", "inet:eth3"] |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
|
||
set -o errexit | ||
TAP_IF=$1 | ||
FROM_IF=$2 | ||
TO_IF=$3 | ||
|
||
tc qdisc del dev $FROM_IF ingress | ||
tc qdisc del dev $TAP_IF ingress | ||
|
||
tc qdisc add dev $TO_IF ingress | ||
tc filter add dev $TO_IF parent ffff: protocol all u32 match u8 0 0 action mirred egress redirect dev $TAP_IF | ||
|
||
tc qdisc add dev $TAP_IF ingress | ||
tc filter add dev $TAP_IF parent ffff: protocol all u32 match u8 0 0 action mirred egress redirect dev $TO_IF |
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.