Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mgmt_vrf_namespace_tacacs: Tacacs enhancement on top of namespace sol… #428

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion config/aaa.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,16 @@ def add(address, timeout, key, auth_type, port, pri, use_mgmt_vrf):
if key is not None:
data['passkey'] = key
if use_mgmt_vrf :
data['vrf'] = "mgmt"
entry = config_db.get_entry('MGMT_VRF_CONFIG',"vrf_global")
if not entry or entry['mgmtVrfEnabled'] == 'false' :
# Either VRF entry does not exist or it is disabled.
# Silenty ignore the --use-mgmt-vrf if VRF is not enabled
data['vrf'] = "None"
else:
data['vrf'] = "mgmt"

else:
data['vrf'] = "None"
config_db.set_entry('TACPLUS_SERVER', address, data)
tacacs.add_command(add)

Expand Down