-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7ee38bc
commit a204bca
Showing
20 changed files
with
595 additions
and
239 deletions.
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
bgpd=yes | ||
ospfd=no | ||
ospf6d=no | ||
ripd=no | ||
ripngd=no | ||
isisd=no | ||
pimd=no | ||
pim6d=no | ||
ldpd=no | ||
nhrpd=no | ||
eigrpd=no | ||
babeld=no | ||
sharpd=no | ||
pbrd=no | ||
bfdd=no | ||
fabricd=no | ||
vrrpd=no | ||
pathd=no | ||
|
||
vtysh_enable=yes | ||
zebra_options=" -A 127.0.0.1 -s 90000000" | ||
mgmtd_options=" -A 127.0.0.1" | ||
bgpd_options=" -A 127.0.0.1" | ||
ospfd_options=" -A 127.0.0.1" | ||
ospf6d_options=" -A ::1" | ||
ripd_options=" -A 127.0.0.1" | ||
ripngd_options=" -A ::1" | ||
isisd_options=" -A 127.0.0.1" | ||
pimd_options=" -A 127.0.0.1" | ||
pim6d_options=" -A ::1" | ||
ldpd_options=" -A 127.0.0.1" | ||
nhrpd_options=" -A 127.0.0.1" | ||
eigrpd_options=" -A 127.0.0.1" | ||
babeld_options=" -A 127.0.0.1" | ||
sharpd_options=" -A 127.0.0.1" | ||
pbrd_options=" -A 127.0.0.1" | ||
staticd_options="-A 127.0.0.1" | ||
bfdd_options=" -A 127.0.0.1" | ||
fabricd_options="-A 127.0.0.1" | ||
vrrpd_options=" -A 127.0.0.1" | ||
pathd_options=" -A 127.0.0.1" |
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,57 @@ | ||
frr defaults datacenter | ||
hostname inet | ||
! | ||
log syslog informational | ||
! | ||
vrf vrfInternet | ||
vni 104009 | ||
ip route 0.0.0.0/0 172.17.0.1 | ||
exit-vrf | ||
! | ||
interface eth2 | ||
ipv6 nd ra-interval 6 | ||
no ipv6 nd suppress-ra | ||
! | ||
interface eth3 | ||
ipv6 nd ra-interval 6 | ||
no ipv6 nd suppress-ra | ||
! | ||
interface lo | ||
ip address 10.0.0.21/32 | ||
! | ||
router bgp 4200000021 | ||
bgp router-id 10.0.0.21 | ||
bgp bestpath as-path multipath-relax | ||
neighbor FABRIC peer-group | ||
neighbor FABRIC remote-as external | ||
neighbor FABRIC timers 1 3 | ||
neighbor eth1 interface peer-group FABRIC | ||
neighbor eth2 interface peer-group FABRIC | ||
! | ||
address-family ipv4 unicast | ||
redistribute connected route-map LOOPBACKS | ||
exit-address-family | ||
! | ||
address-family l2vpn evpn | ||
advertise-all-vni | ||
neighbor FABRIC activate | ||
neighbor FABRIC allowas-in 2 | ||
exit-address-family | ||
! | ||
router bgp 4200000021 vrf vrfInternet | ||
bgp router-id 10.0.0.21 | ||
bgp bestpath as-path multipath-relax | ||
! | ||
address-family ipv4 unicast | ||
redistribute static | ||
exit-address-family | ||
! | ||
address-family l2vpn evpn | ||
advertise ipv4 unicast | ||
exit-address-family | ||
! | ||
route-map LOOPBACKS permit 10 | ||
match interface lo | ||
! | ||
line vty | ||
! |
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,29 @@ | ||
#!/bin/sh | ||
set -o errexit -o xtrace | ||
|
||
ip link add vrfInternet type vrf table 1000 | ||
ip link set dev vrfInternet up | ||
ip link set dev eth0 master vrfInternet | ||
|
||
ip link add name bridge type bridge stp_state 0 | ||
ip link set dev bridge type bridge vlan_filtering 1 | ||
ip link set dev bridge mtu 9000 | ||
ip link set dev bridge up | ||
|
||
ip link add link bridge up name vlanInternet type vlan id 1000 | ||
ip link set dev vlanInternet mtu 9000 | ||
ip link set dev vlanInternet master vrfInternet | ||
bridge vlan del vid 1 dev bridge self | ||
bridge vlan add vid 1000 dev bridge self | ||
ip link set dev vlanInternet up | ||
|
||
ip link add vniInternet type vxlan id 104009 dstport 4789 local 10.0.0.21 nolearning | ||
ip link set dev vlanInternet mtu 9000 | ||
ip link set dev vniInternet master bridge | ||
bridge vlan del vid 1 dev vniInternet | ||
bridge vlan del vid 1 untagged pvid dev vniInternet | ||
bridge vlan add vid 1000 dev vniInternet | ||
bridge vlan add vid 1000 untagged pvid dev vniInternet | ||
ip link set up dev vniInternet | ||
|
||
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE |
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 @@ | ||
service integrated-vtysh-config |
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,20 @@ | ||
FROM ubuntu:22.04 | ||
|
||
ENV LIBGUESTFS_BACKEND=direct | ||
|
||
RUN apt-get update && \ | ||
apt-get --no-install-recommends install --yes \ | ||
linux-image-5.15.0-102-generic \ | ||
net-tools \ | ||
ovmf \ | ||
python3 \ | ||
python3-guestfs \ | ||
qemu-system-x86 \ | ||
telnet \ | ||
tini | ||
|
||
ENTRYPOINT ["/usr/bin/tini", "--"] | ||
|
||
COPY config_db.json mirror_tap_to_eth.sh sonic_entrypoint.py / | ||
|
||
CMD ["/usr/bin/python3", "-u", "/sonic_entrypoint.py"] |
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,72 @@ | ||
{ | ||
"AUTO_TECHSUPPORT": { | ||
"GLOBAL": { | ||
"state": "disabled" | ||
} | ||
}, | ||
"DEVICE_METADATA": { | ||
"localhost": { | ||
"docker_routing_config_mode": "split-unified", | ||
"hostname": "{{ hostname }}", | ||
"hwsku": "Force10-S6000", | ||
"mac": "{{ mac }}", | ||
"platform": "x86_64-kvm_x86_64-r0", | ||
"type": "LeafRouter" | ||
} | ||
}, | ||
"FEATURE": { | ||
"mgmt-framework": { | ||
"state": "disabled" | ||
}, | ||
"pmon": { | ||
"state": "disabled" | ||
}, | ||
"snmp": { | ||
"state": "disabled" | ||
}, | ||
"telemetry": { | ||
"state": "disabled" | ||
} | ||
}, | ||
"MGMT_INTERFACE": null, | ||
"MGMT_PORT": { | ||
"eth0": { | ||
"alias": "eth0", | ||
"admin_status": "up" | ||
} | ||
}, | ||
"PORT": { | ||
"Ethernet0": { | ||
"lanes": "25,26,27,28", | ||
"alias": "fortyGigE0/0", | ||
"index": "0", | ||
"speed": "40000", | ||
"admin_status": "up", | ||
"mtu": "9100" | ||
}, | ||
"Ethernet4": { | ||
"lanes": "29,30,31,32", | ||
"alias": "fortyGigE0/4", | ||
"index": "1", | ||
"speed": "40000", | ||
"admin_status": "up", | ||
"mtu": "9100" | ||
}, | ||
"Ethernet8": { | ||
"lanes": "33,34,35,36", | ||
"alias": "fortyGigE0/8", | ||
"index": "2", | ||
"speed": "40000", | ||
"admin_status": "up", | ||
"mtu": "9100" | ||
}, | ||
"Ethernet12": { | ||
"lanes": "37,38,39,40", | ||
"alias": "fortyGigE0/12", | ||
"index": "3", | ||
"speed": "40000", | ||
"admin_status": "up", | ||
"mtu": "9100" | ||
} | ||
} | ||
} |
File renamed without changes.
Oops, something went wrong.