network/library
Thomas Haller 530788a9dc library: cleanup handling of 'wait' argument
- extend the maxiumum wait time to 3600 seconds

 - disallow -1 values for 'wait'. It was used to mark
   the default value, but that marker should not be
   a valid value for user configuration. Instead, internally
   mark the missing value with None.

 - don't coerce a missing 'wait' parameter to 90 in _validate_post().
   Instead, track it as None so we can later decide between an explicitly
   set paramter and a default value. Also, the default for the states
   'up', 'down', and 'wait' differ.
   This also allows us to slience the warning about 'wait' not
   being implemented -- in case the user didn't configure it.

 - However, still allow zero.

   For

     - state: wait
       wait: 0

   allow it for convinience, so a user can disable the statement by
   setting the wait value to zero.

   For

     - name: MyProfile
       state: up
       wait: 0

   'wait' zero makes sense. It is what we currently do -- not wait
   at all. Later, when we implement waiting for complete activation, the
   default of wait will change (to 90 in this case).
2017-05-30 14:16:52 +02:00
..
network_connections.py library: cleanup handling of 'wait' argument 2017-05-30 14:16:52 +02:00
test_network_connections.py library: cleanup handling of 'wait' argument 2017-05-30 14:16:52 +02:00