]> git.ipfire.org Git - network.git/commit
network check if a zone exist before executing commands
authorJonatan Schlag <jonatan.schlag@ipfire.org>
Wed, 21 Jun 2017 07:45:28 +0000 (09:45 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 22 Jun 2017 14:47:18 +0000 (16:47 +0200)
commit9ea45130c83574f116a6b312836abc0b0f37aea8
tree6244d7252a7458302bc49fb0f6fdee6b86da96b4
parent9d3ac4e43e607f5278d1b260227f2eb1c58f4f55
network check if a zone exist before executing commands

We checked if a zone name was valid so
network zone net0 ... fails when theres was no zone net0.
net0 is a valid zone name so we jumped into the wrong if part.
We now check if a zone exist and when now
network zone net0 ...  is called when no zone net0 exists
we print an error message.
This behaviour is similar to network port .., there we do the same thing with port_exists

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/network