code/whitespace cleanup

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2021-04-28 16:36:13 +02:00
parent d73c7c3668
commit 65723efd38
4 changed files with 51 additions and 32 deletions

View File

@ -227,7 +227,6 @@ sub status {
my $status = ifquery_check(); my $status = ifquery_check();
my $vnet_cfg = $cfg->{vnets}; my $vnet_cfg = $cfg->{vnets};
my $zone_cfg = $cfg->{zones}; my $zone_cfg = $cfg->{zones};
my $nodename = PVE::INotify::nodename(); my $nodename = PVE::INotify::nodename();

View File

@ -110,7 +110,6 @@ foreach my $test (@tests) {
my $config = PVE::Network::SDN::Controllers::generate_controller_config(); my $config = PVE::Network::SDN::Controllers::generate_controller_config();
$controller_rawconfig = PVE::Network::SDN::Controllers::generate_controller_rawconfig($config); $controller_rawconfig = PVE::Network::SDN::Controllers::generate_controller_rawconfig($config);
}; };
if (my $err = $@) { if (my $err = $@) {
fail($name); fail($name);
} else { } else {

View File

@ -2,28 +2,49 @@
version => 1, version => 1,
vnets => { vnets => {
ids => { ids => {
myvnet => { tag => "100", type => "vnet", zone => "myzone" }, myvnet => {
tag => "100",
type => "vnet",
zone => "myzone",
},
}, },
}, },
zones => { zones => {
ids => { myzone => { ipam => "pve", type => "evpn", controller => "evpnctl", 'vrf-vxlan' => 1000 } }, ids => {
myzone => {
ipam => "pve",
type => "evpn",
controller => "evpnctl",
'vrf-vxlan' => 1000,
},
},
}, },
controllers => { controllers => {
ids => { ids => {
evpnctl => { type => "evpn", 'peers' => '192.168.0.1,192.168.0.2,192.168.0.3', asn => "65000" }, evpnctl => {
localhost => { type => "bgp", 'peers' => '192.168.0.252,192.168.0.253', ebgp => "1", 'ebgp-multihop' => '3', asn => "65001", node => "localhost" }, type => "evpn",
'peers' => '192.168.0.1,192.168.0.2,192.168.0.3',
asn => "65000",
},
localhost => {
type => "bgp",
'peers' => '192.168.0.252,192.168.0.253',
ebgp => "1",
'ebgp-multihop' => '3',
asn => "65001",
node => "localhost",
},
}, },
}, },
subnets => { subnets => {
ids => { 'myzone-10.0.0.0-24' => { ids => {
'myzone-10.0.0.0-24' => {
'type' => 'subnet', 'type' => 'subnet',
'vnet' => 'myvnet', 'vnet' => 'myvnet',
'gateway' => '10.0.0.1', 'gateway' => '10.0.0.1',
},
},
},
} }
}
}
}