[quote=“Tom Elliott, post: 21780, member: 7271”]I think, ultimately, you would need to assign an interface to a group. The interface would have to be on the physical fog server (eth0, eth1, eth2, etc…)
[/quote]
Ok, this I have done.
[quote=“Tom Elliott, post: 21780, member: 7271”]
Basically this would require adding a field to the group table on the fog database (pretty simple ultimate.)
[/quote]
This too. Basically the same as I did in 0.32.
[quote=“Tom Elliott, post: 21780, member: 7271”]
Then on the GroupManagementPage, add a selector to choose the interface (based on the interfaces available to that StorageNode) (Not as simple.)
[/quote]
For now, I think, I may skip this. When the basic functionality will work, I can look at this. I just added groups’ interface manually to db.
[quote=“Tom Elliott, post: 21780, member: 7271”]
Then we’d have to get the group id of the task (not simple again).
[/quote]
By this, you mean groupID from groups table?
[quote=“Tom Elliott, post: 21780, member: 7271”]
Then we’d have to change that particular line:
[php]‘interface’ => $StorageNode->get(‘interface’),[/php]
To something that gets that groupid->interface association.
[/quote]
In 0.32 I created this function in /var/www/fog/commons/functions.include.php:
[PHP]function getGroupsInterface( $conn, $groupName )
{
if ( $conn != null && $groupName != null )
{
$sql = “select groupInterface from groups where groupName='”. $groupName .“'”;
$res = mysql_query( $sql, $conn ) or criticalError( mysql_error(), _(“FOG :: Database error!”) );
$ar = mysql_fetch_array( $res );
//echo “funkcia: '”. $ar[“groupInterface”] . “'”;
return $ar["groupInterface"];
}
}
[/PHP]
Would it be possible to use it somehow here?
[quote=“Tom Elliott, post: 21780, member: 7271”]
I have to think of the logic behind what’s actually needed to do this. I will say, however, it may take a while, but it is possble.[/quote]
OK.