diff options
Diffstat (limited to 'src/test/debug/documentation.txt')
| -rw-r--r-- | src/test/debug/documentation.txt | 102 |
1 files changed, 102 insertions, 0 deletions
diff --git a/src/test/debug/documentation.txt b/src/test/debug/documentation.txt new file mode 100644 index 0000000..6ee8ee6 --- /dev/null +++ b/src/test/debug/documentation.txt @@ -0,0 +1,102 @@ +Here a sample of command with pvesh to manage the sdn. + + +#create a vlan transportzone +pvesh create /cluster/sdn/zones/ --zone vlanzone --type vlan --ipam pve --bridge vmbr0 +#create a vnet on vlanzone +pvesh create /cluster/sdn/vnets/ --vnet vnet100 --type vnet --zone vlanzone --tag 100 +#create a subnet on vlanzone +pvesh create /cluster/sdn/vnets/vnet100/subnets/ --type subnet --subnet 192.168.0.0/24 --gateway 192.168.0.1 + + +#create a layer2 vxlan unicast transportzone +pvesh create /cluster/sdn/zones/ --zone vxlanunicastzone --type vxlan --ipam pve --peers 192.168.0.1,192.168.0.2,192.168.0.3 + +#create an evpn controller +pvesh create /cluster/sdn/controllers/ --controller evpn1 --type evpn --peers 192.168.0.1,192.168.0.2,192.168.0.3 --asn 1234 + +#add a ebgp peer +pvesh create /cluster/sdn/controllers/ --controller bgp1 --type bgp --peers 192.168.0.253,192.168.0.254 --asn 1234 --ebgp --node pxnode1 + +#create a layer2 vxlan bgpevpn transportzone +pvesh create /cluster/sdn/zones/ --zone layer2evpnzone --type evpn --ipam pve --controller evpn1 + +#create a layer3 routable vxlan bgpevpn transportzone + exit-nodes +pvesh create /cluster/sdn/zones/ --zone layer3evpnzone --type evpn --ipam pve --controller evpn1 --vrf-vxlan 4000 --exit-nodes pxnode1,pxnode2 + + + +#create a vnet in the transportzone +pvesh create /cluster/sdn/vnets/ --vnet vnet10 --type vnet --zone vlanzone --tag 10 + +#create a vnet in the transportzone with subnets for evpn routing +pvesh create /cluster/sdn/vnets/ --vnet vnet11 --type vnet --zone layer3evpnzone --tag 11 --mac c8:1f:66:f8:62:8d +pvesh create /cluster/sdn/vnets/vnet11/subnets/ --type subnet --subnet 10.0.0.0/24 --gateway 10.0.0.1 +pvesh create /cluster/sdn/vnets/ --vnet vnet12 --type vnet --zone layer3evpnzone --tag 12 --mac c8:1f:66:f8:62:8e +pvesh create /cluster/sdn/vnets/vnet11/subnets/ --type subnet --subnet 10.0.1.0/24 --gateway 10.0.1.1 + +#display running configuration +pvesh get /cluster/sdn/vnets --running +pvesh get /cluster/sdn/zones --running +pvesh get /cluster/sdn/controllers --running +pvesh get /cluster/sdn/vnets/vnetX/subnets --running + + +#display pending configuration +pvesh get /cluster/sdn/vnets --pending +pvesh get /cluster/sdn/zones --pending +pvesh get /cluster/sdn/controllers --pending +pvesh get /cluster/sdn/vnets/vnetX/subnets --pending + + +#apply changes from /etc/pve/sdn.cfg.new to /etc/pve/sdn.cfg +pvesh set /cluster/sdn + + +#generate local /etc/network/interfaces.d/sdn and reload (need to be called on each node) + pvesh set /nodes/<node>/network + + +display transporzone status on all cluster nodes +#pvesh get /cluster/resources +┌────────────────────────────────────┬─────────┬───────┬───────────┬─────────┬───────┬────────┬─────────────┬────────────┬────────────┬───────────────┬──────┬───────────┬──────────────┬────────────────┐ +│ id │ type │ cpu │ disk │ hastate │ level │ maxcpu │ maxdisk │ maxmem │ mem │ node │ pool │ status │ storage │ uptime │ +│ sdn/node1/transportzone10 │ sdn │ │ │ │ │ │ │ │ │ kvmformation1 │ │ error │ │ │ +├────────────────────────────────────┼─────────┼───────┼───────────┼─────────┼───────┼────────┼─────────────┼────────────┼────────────┼───────────────┼──────┼───────────┼──────────────┼────────────────┤ +│ sdn/node1/zone1 │ sdn │ │ │ │ │ │ │ │ │ node1 │ │ available │ │ │ +├────────────────────────────────────┼─────────┼───────┼───────────┼─────────┼───────┼────────┼─────────────┼────────────┼────────────┼───────────────┼──────┼───────────┼──────────────┼────────────────┤ +│ sdn/node1/zone4 │ sdn │ │ │ │ │ │ │ │ │ node1 │ │ available │ │ │ +├────────────────────────────────────┼─────────┼───────┼───────────┼─────────┼───────┼────────┼─────────────┼────────────┼────────────┼───────────────┼──────┼───────────┼──────────────┼────────────────┤ + + + + +#list all transport zones of a node + +pvesh get /nodes/<node>/sdn/zones/ + ┌─────────────────┬───────────┐ + │ sdn │ status │ + ├─────────────────┼───────────┤ + │ transportzone10 │ error │ + ├─────────────────┼───────────┤ + │ zone1 │ available │ + ├─────────────────┼───────────┤ + │ zone4 │ available │ + └─────────────────┴───────────┘ + + +#list all vnet status from a node transportzone + +pveset get /nodes/<node>/sdn/zones/<transportzone>/content + + ┌─────────┬────────┐ + │ vnet │ status │ + ├─────────┼────────┤ + │ vnet100 │ error │ + ├─────────┼────────┤ + │ vnet101 │ error │ + └─────────┴────────┘ + + + + |
