-
Notifications
You must be signed in to change notification settings - Fork 200
privcand UPDATE add private candidate datastore support #1805
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
Open
Ardival
wants to merge
1
commit into
CESNET:devel
Choose a base branch
from
Ardival:devel
base: devel
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,111 @@ | ||
| module ietf-netconf-private-candidate { | ||
| yang-version 1.1; | ||
| namespace "urn:ietf:params:xml:ns:yang:ietf-netconf-private-candidate"; | ||
| prefix pc; | ||
|
|
||
|
|
||
| organization | ||
| "IETF NETCONF (Network Configuration) Working Group"; | ||
| contact | ||
| "WG Web: <http://tools.ietf.org/wg/netconf/> | ||
| WG List: <netconf@ietf.org> | ||
|
|
||
| Editor: James Cumming | ||
| <james.cumming@nokia.com> | ||
|
|
||
| Editor: Robert Wills | ||
| <rowills@cisco.com>"; | ||
| description | ||
| "NETCONF private candidate support. | ||
|
|
||
| Copyright (c) 2026 IETF Trust and the persons identified as | ||
| authors of the code. All rights reserved. | ||
|
|
||
| Redistribution and use in source and binary forms, with or | ||
| without modification, is permitted pursuant to, and subject to | ||
| the license terms contained in, the Revised BSD License set | ||
| forth in Section 4.c of the IETF Trust's Legal Provisions | ||
| Relating to IETF Documents | ||
| (https://trustee.ietf.org/license-info). | ||
|
|
||
| This version of this YANG module is part of RFC XXXX | ||
| (https://www.rfc-editor.org/info/rfcXXXX); see the RFC itself | ||
| for full legal notices. | ||
|
|
||
| The key words 'MUST', 'MUST NOT', 'REQUIRED', 'SHALL', 'SHALL | ||
| NOT', 'SHOULD', 'SHOULD NOT', 'RECOMMENDED', 'NOT RECOMMENDED', | ||
| 'MAY', and 'OPTIONAL' in this document are to be interpreted as | ||
| described in BCP 14 (RFC 2119) (RFC 8174) when, and only when, | ||
| they appear in all capitals, as shown here."; | ||
|
|
||
| revision 2026-02-03 { | ||
| description | ||
| "Introduce private candidate support"; | ||
| reference | ||
| "draft-ietf-netconf-privcand: | ||
| Netconf Private Candidates"; | ||
| } | ||
| revision 2025-10-30 { | ||
| description | ||
| "Introduce private candidate support"; | ||
| reference | ||
| "draft-ietf-netconf-privcand: | ||
| Netconf Private Candidates"; | ||
| } | ||
| revision 2024-09-12 { | ||
| description | ||
| "Introduce private candidate support"; | ||
| reference | ||
| "draft-ietf-netconf-privcand: | ||
| Netconf Private Candidates"; | ||
| } | ||
|
|
||
| feature private-candidate { | ||
| description | ||
| "NETCONF :private-candidate capability; | ||
| If the server advertises the :private-candidate | ||
| capability for a session, then this feature must | ||
| also be enabled for that session. Otherwise, | ||
| this feature must not be enabled."; | ||
| reference | ||
| "draft-ietf-netconf-privcand"; | ||
| } | ||
|
|
||
| rpc update { | ||
| if-feature "private-candidate"; | ||
| description | ||
| "Updates the private candidate from the running | ||
| configuration."; | ||
| reference | ||
| "draft-ietf-netconf-privcand"; | ||
| input { | ||
| leaf resolution-mode { | ||
| type enumeration { | ||
| enum revert-on-conflict { | ||
| description | ||
| "Reject update when any conflicting | ||
| node is found and revert the private | ||
| candidate configuration datastore to its | ||
| state prior to issuing the update."; | ||
| } | ||
| enum prefer-candidate { | ||
| description | ||
| "Resolve conflicted node by selecting | ||
| the private candidate configuration | ||
| datastore version."; | ||
| } | ||
| enum prefer-running { | ||
| description | ||
| "Resolve conflicted node by selecting | ||
| the running configuration datastore | ||
| version."; | ||
| } | ||
| } | ||
| default "revert-on-conflict"; | ||
| description | ||
| "Mode to resolve conflicts between running and | ||
| private-candidate configurations."; | ||
| } | ||
| } | ||
| } | ||
| } |
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.