The vmware_nsx.plugins.nsx_v.vshield.securitygroup_utils Module¶
-
class
vmware_nsx.plugins.nsx_v.vshield.securitygroup_utils.NsxSecurityGroupUtils(nsxv_manager)¶ Bases:
object-
add_nsx_security_group_to_policy(policy_id, sg_id)¶
-
del_nsx_security_group_from_policy(policy_id, sg_id)¶
-
extend_section_with_rules(section, nsx_rules)¶
-
get_container(nsx_sg_id)¶
-
get_nsx_section_name(sg_data)¶
-
get_nsx_sg_name(sg_data)¶
-
get_remote_container(remote_group_id, remote_ip_mac)¶
-
get_rule_config(applied_to_ids, name, action=’allow’, applied_to=’SecurityGroup’, source=None, destination=None, services=None, flags=None, logged=False, tag=None, application_services=None)¶ Helper method to create a nsx rule dict.
-
get_rule_id_pair_from_section(resp)¶
-
get_section_with_rules(name, rules, section_id=None)¶ Helper method to create section dict with rules.
-
is_section_logged(section)¶
-
parse_and_get_section_id(section_xml)¶
-
parse_section(xml_string)¶
-
set_rules_logged_option(section, logged)¶
-
to_xml_string(element)¶
-