The vmware_nsx.nsxlib.mh.secgroup
Module¶
-
vmware_nsx.nsxlib.mh.secgroup.
create_security_profile
(cluster, tenant_id, neutron_id, security_profile)¶ Create a security profile on the NSX backend.
Parameters: - cluster – a NSX cluster object reference
- tenant_id – identifier of the Neutron tenant
- neutron_id – neutron security group identifier
- security_profile – dictionary with data for
configuring the NSX security profile.
-
vmware_nsx.nsxlib.mh.secgroup.
delete_security_profile
(cluster, spid)¶
-
vmware_nsx.nsxlib.mh.secgroup.
is_sg_rule_subset
(sgr1, sgr2)¶ determine if security group rule sgr1 is a strict subset of sgr2
-
vmware_nsx.nsxlib.mh.secgroup.
is_sg_rules_identical
(sgr1, sgr2)¶ determines if security group rule sgr1 and sgr2 are identical
-
vmware_nsx.nsxlib.mh.secgroup.
mk_body
(**kwargs)¶ Convenience function creates and dumps dictionary to string.
Parameters: kwargs – the key/value pirs to be dumped into a json string. Returns: a json string.
-
vmware_nsx.nsxlib.mh.secgroup.
query_security_profiles
(cluster, fields=None, filters=None)¶
-
vmware_nsx.nsxlib.mh.secgroup.
summarize_security_group_rules
(logical_port_rules)¶ Summarizes security group rules and remove duplicates. Given a set of arbitrary security group rules, determining the optimum (minimum) rule set is a complex (NP-hard) problem. This method does not attempt to obtain the optimum rules. Instead, it summarizes a set of common rule patterns.
-
vmware_nsx.nsxlib.mh.secgroup.
update_security_group_rules
(cluster, spid, rules)¶
-
vmware_nsx.nsxlib.mh.secgroup.
update_security_profile
(cluster, spid, name)¶