management.security.manager¶
Logic managing the security level setting of the Trustpoint.
Classes¶
Manages the security level setting of the Trustpoint. |
Module Contents¶
- class management.security.manager.SecurityManager[source]¶
Bases:
trustpoint.logger.LoggerMixinManages the security level setting of the Trustpoint.
- is_feature_allowed(feature, target_level=None)[source]¶
Checks if the specified feature is allowed under the given security level.
If ‘target_level’ is None, the current security level is used.
- Parameters:
target_level (None | str)
- Return type:
bool
- get_security_level()[source]¶
Returns the string representation of the security_mode, e.g. ‘0’, ‘1’, etc.
- Return type:
str
- classmethod get_features_to_disable(sec_level)[source]¶
Returns a list of features that must be disabled at the given security level.
- Parameters:
sec_level (str)
- Return type:
- reset_settings(new_sec_mode)[source]¶
Disables any feature that is not allowed by the new security mode.
- Parameters:
new_sec_mode (str)
- Return type:
None