Skip to content

Commit

Permalink
Refactoring DNS. Added setters which are mainly used by CLI.
Browse files Browse the repository at this point in the history
  • Loading branch information
mchf committed Jan 23, 2013
1 parent f52c280 commit 955861a
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/services/dns.ycp
Expand Up @@ -179,6 +179,30 @@ define void SetHostname( any value)
SetHnItem( "HOSTNAME", value);
}

/**
* Function for updating ip address of first nameserver.
*/
define void SetNameserver1( any value)
{
SetHnItem( "NAMESERVER_1", value);
}

/**
* Function for updating ip address of second nameserver.
*/
define void SetNameserver2( any value)
{
SetHnItem( "NAMESERVER_2", value);
}

/**
* Function for updating ip address of third nameserver.
*/
define void SetNameserver3( any value)
{
SetHnItem( "NAMESERVER_3", value);
}

/**
* Default function to init the value of a widget.
* Used for push buttons.
Expand Down

0 comments on commit 955861a

Please sign in to comment.