Skip to content

Commit

Permalink
Fixed indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
mchf committed May 14, 2013
1 parent 07b39aa commit 3023c96
Showing 1 changed file with 19 additions and 10 deletions.
29 changes: 19 additions & 10 deletions library/network/src/NetworkInterfaces.ycp
Expand Up @@ -872,16 +872,25 @@ global define boolean Import(string devregex, map<string,map> devices) {
* Return supported network device types (for type netcard)
* for this hardware
*/
global list<string> GetDeviceTypes(){
list<string> dev_types = ["eth", "tr", "vlan", "br", "tun", "tap", "ib", "bond"];
if(Arch::s390 ()) dev_types = (list<string>) merge(dev_types, [ "hsi", "ctc", "escon", "ficon", "iucv", "qeth", "lcs"]);
else dev_types = (list<string>) merge(dev_types, [ "arc", "bnep", "dummy", "fddi", "myri", "usb", "wlan" ]);
if(Arch::ia64 ()) dev_types = add(dev_types, "xp");

foreach(string device,dev_types, {
if (!contains(splitstring(DeviceRegex["netcard"]:"", "|"), device)) y2error("%1 is not contained in DeviceRegex[\"netcard\"]", device);
});
return dev_types;
global list<string> GetDeviceTypes()
{
list<string> dev_types = ["eth", "tr", "vlan", "br", "tun", "tap", "ib", "bond"];

if(Arch::s390 ())
dev_types = (list<string>) merge(dev_types, [ "hsi", "ctc", "escon", "ficon", "iucv", "qeth", "lcs"]);
else
dev_types = (list<string>) merge(dev_types, [ "arc", "bnep", "dummy", "fddi", "myri", "usb", "wlan" ]);

if(Arch::ia64 ())
dev_types = add(dev_types, "xp");

foreach(string device, dev_types,
{
if (!contains(splitstring(DeviceRegex["netcard"]:"", "|"), device))
y2error("%1 is not contained in DeviceRegex[\"netcard\"]", device);
});

return dev_types;
}

/**
Expand Down

0 comments on commit 3023c96

Please sign in to comment.