Revision 8d459129
b/lib/cmdlib.py | ||
---|---|---|
16530 | 16530 |
|
16531 | 16531 |
def CheckArguments(self): |
16532 | 16532 |
self.nq = _NetworkQuery(qlang.MakeSimpleFilter("name", self.op.names), |
16533 |
self.op.output_fields, False)
|
|
16533 |
self.op.output_fields, self.op.use_locking)
|
|
16534 | 16534 |
|
16535 | 16535 |
def ExpandNames(self): |
16536 | 16536 |
self.nq.ExpandNames(self) |
b/lib/opcodes.py | ||
---|---|---|
2152 | 2152 |
"""Compute the list of networks.""" |
2153 | 2153 |
OP_PARAMS = [ |
2154 | 2154 |
_POutputFields, |
2155 |
_PUseLocking, |
|
2155 | 2156 |
("names", ht.EmptyList, ht.TListOf(ht.TNonEmptyString), |
2156 | 2157 |
"Empty list to query all groups, group names otherwise"), |
2157 | 2158 |
] |
b/src/Ganeti/OpCodes.hs | ||
---|---|---|
537 | 537 |
, pNetworkName |
538 | 538 |
, pIpConflictsCheck |
539 | 539 |
]) |
540 |
, ("OpNetworkQuery", dOldQueryNoLocking)
|
|
540 |
, ("OpNetworkQuery", dOldQuery) |
|
541 | 541 |
, ("OpRestrictedCommand", |
542 | 542 |
[ pUseLocking |
543 | 543 |
, pRequiredNodes |
b/test/hs/Test/Ganeti/OpCodes.hs | ||
---|---|---|
335 | 335 |
"OP_NETWORK_DISCONNECT" -> |
336 | 336 |
OpCodes.OpNetworkDisconnect <$> genNameNE <*> genNameNE <*> arbitrary |
337 | 337 |
"OP_NETWORK_QUERY" -> |
338 |
OpCodes.OpNetworkQuery <$> genFieldsNE <*> genNamesNE |
|
338 |
OpCodes.OpNetworkQuery <$> genFieldsNE <*> genNamesNE <*> arbitrary
|
|
339 | 339 |
"OP_RESTRICTED_COMMAND" -> |
340 | 340 |
OpCodes.OpRestrictedCommand <$> arbitrary <*> genNodeNamesNE <*> |
341 | 341 |
genNameNE |
Also available in: Unified diff