saltstack/salt — pull request #1760 by archtaku (2012-08-03 04:37:20+00:00)
Title: Add subnet data to network module

Introduces two new module functions: network.subnets and
network.in_subnet. The former returns a list of subnets to which the
minion belongs, and the latter returns True/False depending on whether
or not the minion belongs to a given subnet. Note that the argument to
netork.in_subnet need not be a subnet from the list provided by
network.subnets.