SD-EWAN debug
Posted shaohef
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了SD-EWAN debug相关的知识,希望对你有一定的参考价值。
SDWAN(软件定义WAN)是趋势
五角大楼都要采用了。Aruba Bumps Cisco From the Pentagon
五角大楼要清除思科交换设备,使用边缘平台ESP来自动化部署网络(包括SD-WAN)。
Aruba Networks swept the last remaining vestiges of Cisco’s switching gear from the Pentagon building as part of a Department of Defense modernization effort announced today.
The deal will see Aruba deploy its Edge Services Platform (ESP) architecture to automate the network, eliminating time consuming and often tedious processes such as port mapping and initial switch configuration. Aruba ESP is targeted at campuses, data centers, branches, and remote workers, but it only supports Aruba’s access points (APs), switches, and SD-WAN gateways.
The vendor’s Access Switches will replace existing Cisco switching gear that has reached end of life. The deployment will include more than 150,000 wired ports, distributed across the 6.5 million-square-foot facility. Alongside wired infrastructure, the DoD plans to deploy 3,000 additional Aruba APs to further extend wireless access throughout the campus.
While Aruba ESP can be operated in the cloud, on-site, or as a managed service through one of Aruba’s partners, the DoD will be using Aruba’s ClearPass Policy Manager to orchestrate the networking overhaul. Initially the platform will be used to manage Aruba’s switches to secure access controls across the network. However, Aruba notes that the DoD could extend these controls to its APs, unifying both wired and wireless networks.
SD-EWAN
SD-EWAN(GitHub) means software define edge WAN, it is used to address the network between multi edge clusters or between edge and internet.
这是intel cloud上海团队作为主力,开发的一个项目。基于openwrt的。
openness 项目在集成,集成过程中遇到很多问题,需要debug,在这里把问题都记录一下。
Debug
sdewan depends on ovn3nfv
please follow this way to setup ovn cni: https://github.com/opnfv/ovn4nfv-k8s-plugin/blob/master/doc/how-to-use.md#testing-with-cni-proxy
check the cluster info
kubectl get node
check CNI config
usally we use mutus to support multi inferface,this command to check the config
cat /etc/cni/net.d/00-multus.conf | jq . # same command cat /etc/cni/net.d/00-multus.conf | python -m json.tool
check the cni config by this command
# for calico cat /etc/cni/net.d/*calico.conflist* # for flannel cat /etc/cni/net.d/*flannel.conflist
# for other
cat /etc/cni/net.d/*network*
check CNF run correctly
# Split string by delimiter and get N-th element, Kubernetes API - gets Pods on specific nodes, Get all worker nodes
kubectl get deployment sdewan-cnf # get the last master MASTER=`kubectl get node --selector=‘node-role.kubernetes.io/master‘ -o=custom-columns=NAME:.metadata.name |tail -1` # get the last worker, if No worker it will be NAME WORKER=`kubectl get node --selector=‘!node-role.kubernetes.io/master‘ -o=custom-columns=NAME:.metadata.name |tail -1`
PODNODE=$MASTER SDEWANCNF=`kubectl get pod -A -o wide --field-selector spec.nodeName=$PODNODE|grep sdewan-cnf | head -n 1` NS="$(cut -d‘ ‘ -f1 <<< $SDEWANCNF)" POD=$(awk -F" " ‘{print $2}‘ <<< $SDEWANCNF) # check interface kubectl -n $NS exec -it $POD -- ifconfig # check interface kubectl -n $NS describe pod $POD # get inferfaces annotation kubectl -n $NS get pod $POD -o=jsonpath=‘{.metadata.annotations}‘
OVN check
There are 4 componnets for ovn4vnf, ovn-control-plan/ovn-controller/nfn-operator/nfn-agent.
Both ovn-control-plan and nfn-operator are on master. ovn-control-plan and nfn-agent are on worker
There are 4 componnets for ovn4vnf, ovn-control-plan/ovn-controller/nfn-operator/nfn-agent.
以上是关于SD-EWAN debug的主要内容,如果未能解决你的问题,请参考以下文章
Unity HTFramework框架(四十)Debug的性能监控
调试,高级--step into my code ,只调试自己写的代码,shux,各种step操作debug
Xcode8:"subsystem: com.apple.UIKit, category: HIDEventFiltered, enable_level: 0" 的警告(代码片段