The networking_cisco.apps.saf.common.dfa_sys_lib Module¶
-
class
networking_cisco.apps.saf.common.dfa_sys_lib.BaseOVS(root_helper)¶ Bases:
object-
add_bridge(bridge_name)¶
-
bridge_exists(bridge_name)¶
-
delete_bridge(bridge_name)¶
-
get_bridge_name_for_port_name(port_name)¶
-
port_exists(port_name)¶
-
run_vsctl(args, check_error=False)¶
-
-
class
networking_cisco.apps.saf.common.dfa_sys_lib.OVSBridge(br_name, root_helper)¶ Bases:
networking_cisco.apps.saf.common.dfa_sys_lib.BaseOVS-
add_flow(**kwargs)¶
-
add_port(port_name)¶
-
clear_db_attribute(table_name, record, column)¶
-
create()¶
-
db_get_val(table, record, column, check_error=False)¶
-
delete_flows(**kwargs)¶
-
delete_port(port_name)¶
-
destroy()¶
-
do_action_flows(action, kwargs_list)¶
-
dump_flows_for(**kwargs)¶
-
get_ofport_name(iface_uuid)¶
-
get_port_name_list()¶
-
get_port_ofport(port_name)¶
-
get_port_vlan_tag(port_name)¶
-
remove_all_flows()¶
-
run_ofctl(cmd, args, process_input=None)¶
-
set_db_attribute(table_name, record, column, value)¶
-
set_secure_mode()¶
-
-
networking_cisco.apps.saf.common.dfa_sys_lib.create_process(cmd, root_helper=None, addl_env=None, log_output=True)¶ Create a process object for the given command.
The return value will be a tuple of the process object and the list of command arguments used to create it.
-
networking_cisco.apps.saf.common.dfa_sys_lib.delete_port_glob(root_helper, br_ex, port_name)¶
-
networking_cisco.apps.saf.common.dfa_sys_lib.execute(cmd, root_helper=None, process_input=None, addl_env=None, check_exit_code=True, return_stderr=False, log_fail_as_error=True, log_output=True)¶
-
networking_cisco.apps.saf.common.dfa_sys_lib.get_all_run_phy_intf()¶ Retrieve all physical interfaces that are operationally up.
-
networking_cisco.apps.saf.common.dfa_sys_lib.get_bond_intf(intf)¶
-
networking_cisco.apps.saf.common.dfa_sys_lib.get_bridge_name_for_port_name_glob(root_helper, port_name)¶
-
networking_cisco.apps.saf.common.dfa_sys_lib.get_bridges(root_helper)¶
-
networking_cisco.apps.saf.common.dfa_sys_lib.get_member_ports(intf)¶
-
networking_cisco.apps.saf.common.dfa_sys_lib.get_peer(root_helper, port)¶
-
networking_cisco.apps.saf.common.dfa_sys_lib.is_intf_bond(intf)¶
-
networking_cisco.apps.saf.common.dfa_sys_lib.is_intf_up(intf)¶ Function to check if a interface is up.
-
networking_cisco.apps.saf.common.dfa_sys_lib.is_patch(root_helper, port)¶
-
networking_cisco.apps.saf.common.dfa_sys_lib.is_valid_vlan_tag(vlan)¶
-
networking_cisco.apps.saf.common.dfa_sys_lib.port_exists_glob(root_helper, port_name)¶
-
networking_cisco.apps.saf.common.dfa_sys_lib.subprocess_popen(args, stdin=None, stdout=None, stderr=None, shell=False, env=None)¶