-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
netconf: Inject NACM config for admin user in factory-config
On May 10, 2023, @troglobit wrote: > Initial proposal for factory-config, based on example from RFC8341. This gives the admin user the ability to configure the device over NETCONF.
- Loading branch information
Showing
1 changed file
with
68 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
{ | ||
"ietf-netconf-acm:nacm": { | ||
"groups": { | ||
"group": [ | ||
{ | ||
"name": "admin", | ||
"user-name": [ | ||
"admin" | ||
] | ||
} | ||
] | ||
}, | ||
"rule-list": [ | ||
{ | ||
"name": "guest-acl", | ||
"group": [ | ||
"guest" | ||
], | ||
"rule": [ | ||
{ | ||
"name": "deny-ncm", | ||
"module-name": "ietf-netconf-monitoring", | ||
"access-operations": "*", | ||
"action": "deny", | ||
"comment": "Disallow guests access to any NETCONF monitoring information." | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "limited-acl", | ||
"group": [ | ||
"limited" | ||
], | ||
"rule": [ | ||
{ | ||
"name": "permit-ncm", | ||
"module-name": "ietf-netconf-monitoring", | ||
"access-operations": "read", | ||
"action": "permit", | ||
"comment": "Allow read access to the NETCONF monitoring information." | ||
}, | ||
{ | ||
"name": "permit-exec", | ||
"module-name": "*", | ||
"access-operations": "exec", | ||
"action": "permit", | ||
"comment": "Allow invocation of the supported server operations." | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "admin-acl", | ||
"group": [ | ||
"admin" | ||
], | ||
"rule": [ | ||
{ | ||
"name": "permit-all", | ||
"module-name": "*", | ||
"access-operations": "*", | ||
"action": "permit", | ||
"comment": "Allow 'admin' group complete access to all operations and data." | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} |