X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=PlanetLabConf%2Fsysctl-ip_forward.php;h=47834aa8cc352f1dd5babde303d0f5433f1f4aa6;hb=cf5e46ed05b7ce65ed13a2ece9813cfbc0b403e0;hp=1cc7e5baf7eb9b7c3440326176b3b6f2e74fe5e2;hpb=37133a84f19820613111f6fcede4b764aa8a3c06;p=nodeconfig.git diff --git a/PlanetLabConf/sysctl-ip_forward.php b/PlanetLabConf/sysctl-ip_forward.php index 1cc7e5b..47834aa 100755 --- a/PlanetLabConf/sysctl-ip_forward.php +++ b/PlanetLabConf/sysctl-ip_forward.php @@ -1,7 +1,4 @@ GetNodeNetworks(array('ip' => $_SERVER['REMOTE_ADDR'])); -else - $interfaces = $adm->GetInterfaces(array('ip' => $_SERVER['REMOTE_ADDR'])); +$interfaces = $adm->GetInterfaces(array('ip' => $_SERVER['REMOTE_ADDR'])); if (!empty($interfaces)) { $nodes = $adm->GetNodes(array($interfaces[0]['node_id'])); if (!empty($nodes)) { $node = $nodes[0]; - if ($__PLC_API_VERSION==4.2) - $interfaces = $adm->GetInterfaces($node['nodenetwork_ids']); - else - $interfaces = $adm->GetInterfaces($node['interface_ids']); + $interfaces = $adm->GetInterfaces($node['interface_ids']); foreach ($interfaces as $interface) { // Nodes with proxy socket interfaces need to be able to forward @@ -44,7 +28,6 @@ if (!empty($interfaces)) { ?> -# $Id$ # # sysctl configuration file to optionally enable/disable IP forwarding #