Skip to content

Instantly share code, notes, and snippets.

@trozet
Created February 16, 2022 17:40
Show Gist options
  • Save trozet/aff370a16ffbf98441e51ba071157ffa to your computer and use it in GitHub Desktop.
Save trozet/aff370a16ffbf98441e51ba071157ffa to your computer and use it in GitHub Desktop.
allocator test
[trozet@fedora go-controller]$ go test -v ./pkg/ovn/subnetallocator -run TestTrozet
=== RUN TestTrozet
trozet after subnet allocator created
10.102.0.0/24
10.102.1.0/24
10.102.2.0/24
10.102.3.0/24
10.102.4.0/24
10.102.5.0/24
10.102.6.0/24
10.102.7.0/24
10.102.8.0/24
10.102.9.0/24
10.102.10.0/24
10.102.11.0/24
10.102.12.0/24
10.102.13.0/24
10.102.14.0/24
10.102.15.0/24
10.102.16.0/24
10.102.17.0/24
10.102.18.0/24
10.102.19.0/24
10.102.20.0/24
10.102.21.0/24
10.102.22.0/24
10.102.23.0/24
10.102.24.0/24
10.102.25.0/24
10.102.26.0/24
10.102.27.0/24
10.102.28.0/24
10.102.29.0/24
10.102.30.0/24
10.102.31.0/24
10.102.32.0/24
10.102.33.0/24
10.102.34.0/24
10.102.35.0/24
10.102.36.0/24
10.102.37.0/24
10.102.38.0/24
10.102.39.0/24
10.102.40.0/24
10.102.41.0/24
10.102.42.0/24
10.102.43.0/24
10.102.44.0/24
10.102.45.0/24
10.102.46.0/24
10.102.47.0/24
10.102.48.0/24
10.102.49.0/24
10.102.50.0/24
10.102.51.0/24
10.102.52.0/24
10.102.53.0/24
10.102.54.0/24
10.102.55.0/24
10.102.56.0/24
10.102.57.0/24
10.102.58.0/24
10.102.59.0/24
10.102.60.0/24
10.102.61.0/24
10.102.62.0/24
10.102.63.0/24
10.102.64.0/24
10.102.65.0/24
10.102.66.0/24
10.102.67.0/24
10.102.68.0/24
10.102.69.0/24
10.102.70.0/24
10.102.71.0/24
10.102.72.0/24
10.102.73.0/24
10.102.74.0/24
10.102.75.0/24
10.102.76.0/24
10.102.77.0/24
10.102.78.0/24
10.102.79.0/24
10.102.80.0/24
10.102.81.0/24
10.102.82.0/24
10.102.83.0/24
10.102.84.0/24
10.102.85.0/24
10.102.86.0/24
10.102.87.0/24
10.102.88.0/24
10.102.89.0/24
10.102.90.0/24
10.102.91.0/24
10.102.92.0/24
10.102.93.0/24
10.102.94.0/24
10.102.95.0/24
10.102.96.0/24
10.102.97.0/24
10.102.98.0/24
10.102.99.0/24
10.102.100.0/24
10.102.101.0/24
10.102.102.0/24
10.102.103.0/24
10.102.104.0/24
10.102.105.0/24
10.102.106.0/24
10.102.107.0/24
10.102.108.0/24
10.102.109.0/24
10.102.110.0/24
10.102.111.0/24
10.102.112.0/24
10.102.113.0/24
10.102.114.0/24
10.102.115.0/24
10.102.116.0/24
10.102.117.0/24
10.102.118.0/24
10.102.119.0/24
10.102.120.0/24
10.102.121.0/24
10.102.122.0/24
10.102.123.0/24
10.102.124.0/24
10.102.125.0/24
10.102.126.0/24
10.102.127.0/24
10.102.128.0/24
10.102.129.0/24
10.102.130.0/24
10.102.131.0/24
10.102.132.0/24
10.102.133.0/24
10.102.134.0/24
10.102.135.0/24
10.102.136.0/24
10.102.137.0/24
10.102.138.0/24
10.102.139.0/24
10.102.140.0/24
10.102.141.0/24
10.102.142.0/24
10.102.143.0/24
10.102.144.0/24
10.102.145.0/24
10.102.146.0/24
10.102.147.0/24
10.102.148.0/24
10.102.149.0/24
10.102.150.0/24
10.102.151.0/24
10.102.152.0/24
10.102.153.0/24
10.102.154.0/24
10.102.155.0/24
10.102.156.0/24
10.102.157.0/24
10.102.158.0/24
10.102.159.0/24
10.102.160.0/24
10.102.161.0/24
10.102.162.0/24
10.102.163.0/24
10.102.164.0/24
10.102.165.0/24
10.102.166.0/24
10.102.167.0/24
10.102.168.0/24
10.102.169.0/24
10.102.170.0/24
10.102.171.0/24
10.102.172.0/24
10.102.173.0/24
10.102.174.0/24
10.102.175.0/24
10.102.176.0/24
10.102.177.0/24
10.102.178.0/24
10.102.179.0/24
10.102.180.0/24
10.102.181.0/24
10.102.182.0/24
10.102.183.0/24
10.102.184.0/24
10.102.185.0/24
10.102.186.0/24
10.102.187.0/24
10.102.188.0/24
10.102.189.0/24
10.102.190.0/24
10.102.191.0/24
10.102.192.0/24
10.102.193.0/24
10.102.194.0/24
10.102.195.0/24
10.102.196.0/24
10.102.197.0/24
10.102.198.0/24
10.102.199.0/24
10.102.200.0/24
10.102.201.0/24
10.102.202.0/24
10.102.203.0/24
10.102.204.0/24
10.102.205.0/24
10.102.206.0/24
10.102.207.0/24
10.102.208.0/24
10.102.209.0/24
10.102.210.0/24
10.102.211.0/24
10.102.212.0/24
10.102.213.0/24
10.102.214.0/24
10.102.215.0/24
10.102.216.0/24
10.102.217.0/24
10.102.218.0/24
10.102.219.0/24
10.102.220.0/24
10.102.221.0/24
10.102.222.0/24
10.102.223.0/24
10.102.224.0/24
10.102.225.0/24
10.102.226.0/24
10.102.227.0/24
10.102.228.0/24
10.102.229.0/24
10.102.230.0/24
10.102.231.0/24
10.102.232.0/24
10.102.233.0/24
10.102.234.0/24
10.102.235.0/24
10.102.236.0/24
10.102.237.0/24
10.102.238.0/24
10.102.239.0/24
10.102.240.0/24
10.102.241.0/24
10.102.242.0/24
10.102.243.0/24
10.102.244.0/24
10.102.245.0/24
10.102.246.0/24
10.102.247.0/24
10.102.248.0/24
10.102.249.0/24
10.102.250.0/24
10.102.251.0/24
10.102.252.0/24
10.102.253.0/24
10.102.254.0/24
10.102.255.0/24
--- PASS: TestTrozet (0.00s)
PASS
ok github.com/ovn-org/ovn-kubernetes/go-controller/pkg/ovn/subnetallocator (cached)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment