decbf325d122f6066c37bce80af6fa500f6e7681,poseidon/controllers/faucet/parser.py,Parser,clear_mirrors,#Parser#Any#,24
Before Change
del obj_doc["dps"][switch]["timeout"]
if "arp_neighbor_timeout" in obj_copy["dps"][switch]:
del obj_doc["dps"][switch]["arp_neighbor_timeout"]
return True
def config(self, config_file, action, port, switch):
switch_found = None
// TODO check for other files
After Change
return True
def clear_mirrors(self, config_file):
config_file = Parser().get_config_file(config_file)
obj_doc = Parser().yaml_in(config_file)
if obj_doc:
// TODO make this smarter about more complex configurations (backup original values, etc)
obj_copy = deepcopy(obj_doc)
for switch in obj_copy["dps"]:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: CyberReboot/poseidon
Commit Name: decbf325d122f6066c37bce80af6fa500f6e7681
Time: 2018-12-27
Author: clewis@iqt.org
File Name: poseidon/controllers/faucet/parser.py
Class Name: Parser
Method Name: clear_mirrors
Project Name: CyberReboot/poseidon
Commit Name: decbf325d122f6066c37bce80af6fa500f6e7681
Time: 2018-12-27
Author: clewis@iqt.org
File Name: poseidon/controllers/faucet/parser.py
Class Name: Parser
Method Name: config
Project Name: pantsbuild/pants
Commit Name: 07d517a88c330102d10753b1ad118c22c335737c
Time: 2014-12-06
Author: benjyw@gmail.com
File Name: src/python/pants/backend/core/tasks/reflect.py
Class Name:
Method Name: gen_goals_glopts_reference_data