[4/5] config hooks: hook_parse_cmdline take id as an argument

Message ID 1502533349-13935-4-git-send-email-jonatan.schlag@ipfire.org
State New


Jonatan Schlag Aug. 12, 2017, 8:22 p.m. UTC
  All hook_parse_cmdline take now the id as the first argument. This is required because
zone_config_check_same_setting needs the id to ignore the config we edit in the moment.
All hook_parse_cmdline functions are changed to keep the generic hook_edit function working.
Another option was to write an own hook_edit function for the ipv4-static and ipv6-static hook.
But this solution is not easier then to keep things more generic and equal. Makes also maintaining easier.

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
 src/hooks/configs/dhcp         | 4 ++++
 src/hooks/configs/ipv4-static  | 7 ++++++-
 src/hooks/configs/ipv6-auto    | 5 +++++
 src/hooks/configs/ipv6-static  | 7 ++++++-
 src/hooks/configs/pppoe-server | 5 +++++
 5 files changed, 26 insertions(+), 2 deletions(-)