def running_config_host(context, scoreboard, data): """ Add host details, including tags. """ detail = data.get('detail', False) run_config.post_paths('core/device', detail)
def running_config_switch(context, scoreboard, data): """ Switch running-config """ detail = data.get('detail') dpid = data.get('dpid') if dpid: path = [('core/switch', { 'core/switch/dpid' : dpid }),] path.append(('applications/bigtap/interface-config', {'switch' : dpid}),) else: path = ['core/switch', 'applications/bigtap/interface-config'] run_config.post_paths(context, path, detail)
def running_config_user(context, config, data): detail = data.get('detail') if context.bigdb.enabled(): run_config.post_paths(context, 'core/aaa/local-user', detail)
def running_config_group(context, config, data): detail = data.get('detail') if context.bigdb.enabled(): run_config.post_paths(context, 'core/aaa/group', detail)