Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
8c2b96b
Ixia-c operator upgrade (#475)
anjan-keysight Jan 4, 2024
0333295
Update internal.pkr.hcl to install network diagnosis tools (#476)
liulk Jan 9, 2024
8910cd2
add safe type conv (#478)
alexmasi Jan 20, 2024
b2616e9
pin to docker 24 (#482)
alexmasi Jan 23, 2024
0a97b3b
juniper cptx, ncptx allow inside gRPC port other than 32767 (#485)
nitinsoniism Jan 25, 2024
c6583ba
Initial commit handling defaults in vendor node to make KNE topo crea…
NehaManjunath Jan 25, 2024
f007b8d
Add credential refresh for GAR registries in kind (#479)
alexmasi Jan 26, 2024
ce83887
Support multiple services in topo proto (#486)
NehaManjunath Jan 31, 2024
e070161
Ixia-c operator upgrade (#477)
anjan-keysight Feb 1, 2024
bf42d07
remove trailing whitespace (#487)
alexmasi Feb 1, 2024
b0e9ef5
Fix flaky test relying on map ordering (#490)
alexmasi Feb 1, 2024
dba879a
upgrade srl controller to v0.6.1 (#492)
alexmasi Feb 2, 2024
3bbe898
Add config support for alpine (#491)
DanG100 Feb 3, 2024
a110702
Fix flag name and add tests (#493)
DanG100 Feb 5, 2024
543c058
Multiple services implementation (#489)
NehaManjunath Feb 12, 2024
3698881
Update KENG versions in manifest (#495)
jasdeep-hundal Feb 12, 2024
6b835bc
Bump golang.org/x/crypto from 0.14.0 to 0.17.0 (#474)
dependabot[bot] Feb 16, 2024
08163c7
Revert "Bump golang.org/x/crypto from 0.14.0 to 0.17.0" (#498)
alexmasi Feb 16, 2024
1d152af
Add better semver parsing (#496)
alexmasi Feb 16, 2024
39a7e78
Work towards cptx deprecation (#497)
alexmasi Feb 20, 2024
bee4549
update vendor service defaults and add tests (#499)
alexmasi Feb 23, 2024
1f52d96
Fix paths to Keysight manifests in the 'Create a KNE topology' docume…
thash Mar 4, 2024
65b8918
Update KENG config map versions and operator (#502)
jasdeep-hundal Mar 6, 2024
906a329
Bump google.golang.org/protobuf from 1.32.0 to 1.33.0 (#505)
dependabot[bot] Mar 15, 2024
f197e16
rollforward deps to fix postsubmit (#503)
alexmasi Mar 15, 2024
98293cb
Adding Drivenets Vendor support
davnerson-dn Dec 31, 2023
6220356
Adding Drivenets Vendor support
davnerson-dn Dec 31, 2023
be4ea3a
update vendor service defaults
davnerson-dn Mar 11, 2024
c40b7b0
modified after review
davnerson-dn Mar 17, 2024
e048783
go mod tidy + go fmt
davnerson-dn Mar 19, 2024
95b46e7
create Volume based on configMap
davnerson-dn Mar 20, 2024
8de6284
use errdif for unit test and modified controller.proto
davnerson-dn Mar 20, 2024
079b92b
added default config file and path
davnerson-dn Mar 20, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ This is not an officially supported Google product.
## Goal

For network emulation, there are many approaches using VM's for emulation of a
hardware router. Arista, Cisco, Juniper, and Nokia have multiple implementations
hardware router. Arista, Cisco, Juniper, Drivenets, and Nokia have multiple implementations
of their network operating system and various generations of hardware emulation.
These systems are very good for most validation of vendor control plane
implementations and data plane for limited certifications. The idea of this
Expand Down
2 changes: 1 addition & 1 deletion api/metallb/clientset/v1beta1/ipaddresspool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (

"github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
"github.com/h-fam/errdiff"
"github.com/openconfig/gnmi/errdiff"
metallbv1 "go.universe.tf/metallb/api/v1beta1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
Expand Down
2 changes: 1 addition & 1 deletion api/metallb/clientset/v1beta1/l2advertisement_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
"github.com/h-fam/errdiff"
"github.com/openconfig/gnmi/errdiff"
metallbv1 "go.universe.tf/metallb/api/v1beta1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
Expand Down
32 changes: 16 additions & 16 deletions cloudbuild/external.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,15 @@ build {
provisioner "shell" {
inline = [
"echo Installing docker...",
"sudo apt-get -o DPkg::Lock::Timeout=60 update",
"sudo apt-get -o DPkg::Lock::Timeout=60 install apt-transport-https ca-certificates curl gnupg lsb-release -y",
"sudo apt-get update",
"sudo apt-get install apt-transport-https ca-certificates curl gnupg lsb-release -y",
"curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg",
"echo \"deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian $(lsb_release -cs) stable\" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null",
"sudo apt-get -o DPkg::Lock::Timeout=60 update",
"sudo apt-get -o DPkg::Lock::Timeout=60 install docker-ce docker-ce-cli containerd.io build-essential -y",
"sudo apt-get update",
"sudo apt-get install docker-ce docker-ce-cli containerd.io build-essential -y",
"sudo usermod -aG docker $USER",
"sudo docker version",
"sudo apt-get -o DPkg::Lock::Timeout=60 install openvswitch-switch-dpdk -y", # install openvswitch for cisco containers
"sudo apt-get install openvswitch-switch-dpdk -y", # install openvswitch for cisco containers
"echo \"fs.inotify.max_user_instances=64000\" | sudo tee -a /etc/sysctl.conf", # configure inotify for cisco xrd containers
"echo \"kernel.pid_max=1048575\" | sudo tee -a /etc/sysctl.conf", # configure pid_max for cisco 8000e containers
"sudo sysctl -p",
Expand All @@ -82,10 +82,10 @@ build {
provisioner "shell" {
inline = [
"echo Installing kubectl...",
"curl -fsSL https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo gpg --dearmor -o /etc/apt/keyrings/kubernetes-archive-keyring.gpg",
"echo \"deb [signed-by=/etc/apt/keyrings/kubernetes-archive-keyring.gpg] https://apt.kubernetes.io/ kubernetes-xenial main\" | sudo tee /etc/apt/sources.list.d/kubernetes.list",
"sudo apt-get -o DPkg::Lock::Timeout=60 update",
"sudo apt-get -o DPkg::Lock::Timeout=60 install kubelet kubeadm kubectl -y",
"curl -fsSL https://pkgs.k8s.io/core:/stable:/v1.29/deb/Release.key | sudo gpg --dearmor -o /etc/apt/keyrings/kubernetes-apt-keyring.gpg",
"echo \"deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable:/v1.29/deb/ /\" | sudo tee /etc/apt/sources.list.d/kubernetes.list",
"sudo apt-get update",
"sudo apt-get install kubelet kubeadm kubectl -y",
"kubectl version --client",
"echo 'source <(kubectl completion bash)' >> ~/.bashrc",
"echo 'alias k=kubectl' >> ~/.bashrc",
Expand All @@ -106,14 +106,14 @@ build {
"echo Installing multinode cluster dependencies...",
"git clone https://github.com/flannel-io/flannel.git",
"curl --create-dirs -o third_party/licenses/flannel/LICENSE https://raw.githubusercontent.com/flannel-io/flannel/master/LICENSE",
"git clone https://github.com/Mirantis/cri-dockerd.git --branch v0.3.1",
"git clone https://github.com/Mirantis/cri-dockerd.git",
"cd cri-dockerd",
"PATH=$PATH:/usr/local/go/bin",
"/home/$USER/go/bin/go-licenses check github.com/Mirantis/cri-dockerd",
"/home/$USER/go/bin/go-licenses save github.com/Mirantis/cri-dockerd --save_path=\"../third_party/licenses/cri-dockerd\"",
"/usr/local/go/bin/go build",
"sudo cp cri-dockerd /usr/local/bin/",
"sudo cp -a packaging/systemd/* /etc/systemd/system",
"make cri-dockerd",
"sudo install -o root -g root -m 0755 cri-dockerd /usr/local/bin/cri-dockerd",
"sudo install packaging/systemd/* /etc/systemd/system",
"sudo sed -i -e 's,/usr/bin/cri-dockerd,/usr/local/bin/cri-dockerd,' /etc/systemd/system/cri-docker.service",
"sudo systemctl enable cri-docker.socket",
]
Expand All @@ -122,7 +122,7 @@ build {
provisioner "shell" {
inline = [
"echo Installing kind...",
"/usr/local/go/bin/go install sigs.k8s.io/kind@v0.19.0",
"/usr/local/go/bin/go install sigs.k8s.io/kind@v0.22.0",
"curl --create-dirs -o third_party/licenses/kind/LICENSE https://raw.githubusercontent.com/kubernetes-sigs/kind/main/LICENSE",
"sudo cp /home/$USER/go/bin/kind /usr/local/bin/",
"/home/$USER/go/bin/kind version",
Expand All @@ -132,7 +132,7 @@ build {
provisioner "shell" {
inline = [
"echo Cloning openconfig/kne github repo...",
"sudo apt-get -o DPkg::Lock::Timeout=60 install git -y",
"sudo apt-get install git -y",
"git clone -b ${var.branch_name} https://github.com/openconfig/kne.git",
"cd kne",
"PATH=$PATH:/usr/local/go/bin",
Expand Down Expand Up @@ -160,7 +160,7 @@ build {
provisioner "shell" {
inline = [
"echo Installing openconfig tools...",
"sudo apt-get -o DPkg::Lock::Timeout=60 install tree -y",
"sudo apt-get install tree -y",
"bash -c \"$(curl -sL https://get-gnmic.openconfig.net)\"",
"bash -c \"$(curl -sL https://get-gribic.kmrd.dev)\"",
"bash -c \"$(curl -sL https://get-gnoic.kmrd.dev)\"",
Expand Down
41 changes: 24 additions & 17 deletions cloudbuild/internal.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,15 @@ build {
provisioner "shell" {
inline = [
"echo Installing docker...",
"sudo apt-get -o DPkg::Lock::Timeout=60 update",
"sudo apt-get -o DPkg::Lock::Timeout=60 install apt-transport-https ca-certificates curl gnupg lsb-release -y",
"sudo apt-get update",
"sudo apt-get install apt-transport-https ca-certificates curl gnupg lsb-release -y",
"curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg",
"echo \"deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian $(lsb_release -cs) stable\" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null",
"sudo apt-get -o DPkg::Lock::Timeout=60 update",
"sudo apt-get -o DPkg::Lock::Timeout=60 install docker-ce docker-ce-cli containerd.io build-essential -y",
"sudo apt-get update",
"sudo apt-get install docker-ce docker-ce-cli containerd.io build-essential -y",
"sudo usermod -aG docker $USER",
"sudo docker version",
"sudo apt-get -o DPkg::Lock::Timeout=60 install openvswitch-switch-dpdk -y", # install openvswitch for cisco containers
"sudo apt-get install openvswitch-switch-dpdk -y", # install openvswitch for cisco containers
"echo \"fs.inotify.max_user_instances=64000\" | sudo tee -a /etc/sysctl.conf", # configure inotify for cisco xrd containers
"echo \"kernel.pid_max=1048575\" | sudo tee -a /etc/sysctl.conf", # configure pid_max for cisco 8000e containers
"sudo sysctl -p",
Expand All @@ -82,7 +82,6 @@ build {
"sudo docker pull us-west1-docker.pkg.dev/gep-kne/arista/ceos:ga",
"sudo docker pull us-west1-docker.pkg.dev/gep-kne/cisco/xrd:ga",
"sudo docker pull us-west1-docker.pkg.dev/gep-kne/cisco/8000e:ga",
"sudo docker pull us-west1-docker.pkg.dev/gep-kne/juniper/cptx:ga",
"sudo docker pull us-west1-docker.pkg.dev/gep-kne/juniper/ncptx:ga",
"sudo docker pull us-west1-docker.pkg.dev/gep-kne/nokia/srlinux:ga",
]
Expand All @@ -91,10 +90,10 @@ build {
provisioner "shell" {
inline = [
"echo Installing kubectl...",
"curl -fsSL https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo gpg --dearmor -o /etc/apt/keyrings/kubernetes-archive-keyring.gpg",
"echo \"deb [signed-by=/etc/apt/keyrings/kubernetes-archive-keyring.gpg] https://apt.kubernetes.io/ kubernetes-xenial main\" | sudo tee /etc/apt/sources.list.d/kubernetes.list",
"sudo apt-get -o DPkg::Lock::Timeout=60 update",
"sudo apt-get -o DPkg::Lock::Timeout=60 install kubelet kubeadm kubectl -y",
"curl -fsSL https://pkgs.k8s.io/core:/stable:/v1.29/deb/Release.key | sudo gpg --dearmor -o /etc/apt/keyrings/kubernetes-apt-keyring.gpg",
"echo \"deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable:/v1.29/deb/ /\" | sudo tee /etc/apt/sources.list.d/kubernetes.list",
"sudo apt-get update",
"sudo apt-get install kubelet kubeadm kubectl -y",
"kubectl version --client",
"echo 'source <(kubectl completion bash)' >> ~/.bashrc",
"echo 'alias k=kubectl' >> ~/.bashrc",
Expand All @@ -106,11 +105,12 @@ build {
inline = [
"echo Installing multinode cluster dependencies...",
"git clone https://github.com/flannel-io/flannel.git",
"git clone https://github.com/Mirantis/cri-dockerd.git --branch v0.3.1",
"git clone https://github.com/Mirantis/cri-dockerd.git",
"cd cri-dockerd",
"/usr/local/go/bin/go build",
"sudo cp cri-dockerd /usr/local/bin/",
"sudo cp -a packaging/systemd/* /etc/systemd/system",
"PATH=$PATH:/usr/local/go/bin",
"make cri-dockerd",
"sudo install -o root -g root -m 0755 cri-dockerd /usr/local/bin/cri-dockerd",
"sudo install packaging/systemd/* /etc/systemd/system",
"sudo sed -i -e 's,/usr/bin/cri-dockerd,/usr/local/bin/cri-dockerd,' /etc/systemd/system/cri-docker.service",
"sudo systemctl enable cri-docker.socket",
]
Expand All @@ -119,7 +119,7 @@ build {
provisioner "shell" {
inline = [
"echo Installing kind...",
"/usr/local/go/bin/go install sigs.k8s.io/kind@v0.19.0",
"/usr/local/go/bin/go install sigs.k8s.io/kind@v0.22.0",
"sudo cp /home/$USER/go/bin/kind /usr/local/bin/",
"/home/$USER/go/bin/kind version",
]
Expand All @@ -128,7 +128,7 @@ build {
provisioner "shell" {
inline = [
"echo Cloning openconfig/kne github repo...",
"sudo apt-get -o DPkg::Lock::Timeout=60 install git -y",
"sudo apt-get install git -y",
"git clone -b ${var.branch_name} https://github.com/openconfig/kne.git",
"cd kne/kne_cli",
"/usr/local/go/bin/go build -o kne",
Expand Down Expand Up @@ -164,7 +164,7 @@ build {
provisioner "shell" {
inline = [
"echo Installing openconfig tools...",
"sudo apt-get -o DPkg::Lock::Timeout=60 install tree -y",
"sudo apt-get install tree -y",
"bash -c \"$(curl -sL https://get-gnmic.openconfig.net)\"",
"bash -c \"$(curl -sL https://get-gribic.kmrd.dev)\"",
"bash -c \"$(curl -sL https://get-gnoic.kmrd.dev)\"",
Expand All @@ -179,4 +179,11 @@ build {
"rm add-google-cloud-ops-agent-repo.sh",
]
}

provisioner "shell" {
inline = [
"echo Installing network diagnosis tools...",
"sudo apt-get install net-tools iptables nftables -y",
]
}
}
6 changes: 6 additions & 0 deletions cloudbuild/vendors/ceos.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ management api gribi
transport grpc default
ssl profile octa-ssl-profile
!
p4-runtime
no shutdown
!
transport grpc default
ssl profile octa-ssl-profile
!
aaa authorization exec default local
!
ip route 0.0.0.0/0 null0
Expand Down
Loading