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

authentication-type parameter for ospf protocol seems incomplete #922

Open
shashu89 opened this issue Jul 24, 2023 · 8 comments
Open

authentication-type parameter for ospf protocol seems incomplete #922

shashu89 opened this issue Jul 24, 2023 · 8 comments
Assignees

Comments

@shashu89
Copy link

Hi Team,

Looks like authentication-type parameter doesn't seem to not have corresponding authentication-key attribute for ospf protocol
public/release/models/ospf/openconfig-ospfv2-area-interface.yang

leaf authentication-type {
  type string;
  description
    "The type of authentication that should be used on this
    interface";
}

So, Is there something I have missed here?

@dplore
Copy link
Member

dplore commented Aug 8, 2023

Agreed, this does look like this is ambiguous. Seems like OSPF should have a crypto-type just like we have for ISIS: /network-instances/network-instance/protocols/protocol/isis/levels/level/link-state-database/lsp/tlvs/tlv/authentication/state/crypto-type

and then a separate leaf for the authentication-key, like we have in ISIS:
/network-instances/network-instance/protocols/protocol/isis/levels/level/link-state-database/lsp/tlvs/tlv/authentication/state/ authentication-key

Is this the problem you're looking to resolve?

@dplore dplore self-assigned this Aug 8, 2023
@shashu89
Copy link
Author

shashu89 commented Aug 9, 2023

Yes, exactly, we need a crypto-type and authentication-key and even existing authentication-type parameter is not clear about the standard values it can hold.

@shashu89
Copy link
Author

shashu89 commented Aug 9, 2023

I am proposing as below if we can add a new authentication section under interfaces:

          |  +--rw areas
          |     +--rw area* [identifier]
          |        +--rw identifier       -> ../config/identifier
          |        +--rw config
          |        |  +--rw identifier?   oc-ospf-types:ospf-area-identifier
          |        +--rw interfaces
          |        |  +--rw interface* [id]
          |        |     +--rw id               -> ../config/id
          |        |     +--rw authentication
          |        |           +--rw config
          |        |           |  +--rw authentication-mode?   identityref
          |        |           |  +--rw simple-password?       string
          |        |           |  +--rw message-digest* [message-digest-keyid]
          |        |           |     +--rw message-digest-keyid         uint8
          |        |           |     +--rw message-digest-encryption?   MESSAGE_DIGEST_ENCRYPTION
          |        |           |     +--rw message-digest-password?     string
          |        |           +--ro state
          |        |           |  +--ro authentication-mode?   identityref
          |        |           |  +--ro simple-password?       string
          |        |           |  +--ro message-digest* [message-digest-keyid]
          |        |           |      +--ro message-digest-keyid         uint8
          |        |           |      +--ro message-digest-encryption?   MESSAGE_DIGEST_ENCRYPTION
          |        |           |      +--ro message-digest-password?     string

@missaesasaya
Copy link
Contributor

Was there any progress on this issue? We are also having the same problem on our project. Also, this seems related to issue #116.

@dplore
Copy link
Member

dplore commented Jun 4, 2024

@shashu89 please do send a pull request for your change.

@dplore
Copy link
Member

dplore commented Jun 4, 2024

This is also reported via #868 and #116

@Shashank-arista
Copy link
Contributor

Shashank-arista commented Jun 5, 2024

(Posting from official account)
@dplore, I had actually implemented the above as an internal augmentation. I am in the process of raising a PR for the same. Will share it in a couple of days.

@Shashank-arista
Copy link
Contributor

Shashank-arista commented Jun 12, 2024

@dplore please find the pull request raised here: #1127

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Waiting for author
Development

No branches or pull requests

4 participants