Skip to content
This repository has been archived by the owner on Sep 17, 2019. It is now read-only.

Add get_static_rp_config method and test #219

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

bewing
Copy link
Member

@bewing bewing commented Mar 14, 2017

New method to retrieve PIM static RP configuration.

This is built around the EOS CLI parser, so I'm open to suggestions from other drivers on changing the return/output.

@dbarrosop
Copy link
Member

Can we base this on the IETF model instead? If this can hold for 2-3 weeks we might be able to even launch this as part of the OpenConfig framework.

@bewing
Copy link
Member Author

bewing commented Mar 15, 2017

I don't have an issue with holding this.

@bewing
Copy link
Member Author

bewing commented Mar 16, 2017

For reference, the IETF model for static RPs:

{
    "pim": {
        "address-family": {
            "ipv4": {
                "address-family": "ipv4",
                "rp": {
                    "static-rp": {
                        "ipv4-rp": {
                            "192.0.2.1": {
                                "ipv4-address": "192.0.2.1",
                                "pim-sm": {
                                    "policy-name": "v4-sm-acl",
                                    "override": False,
                                    "priority": 0, # EOS ONLY
                                    "hash-mask-length": 30 # EOS ONLY
                                },
                                "pim-bidir": {
                                    "policy-name": "v4-bidir-acl",
                                    "override": False,
                                }
                            }
                        }
                    }
                }
            },
            "ipv6": {
                "address-family": "ipv6",
                "rp": {
                    "static-rp": {
                        "ipv6-rp": {
                            "2001:DB8::1": {
                                "ipv6-address": "2001:DB8::1",
                                "pim-sm": {
                                    "policy-name": "v6-sm-acl",
                                    "override": False,
                                },
                                "pim-bidir": {
                                    "policy-name": "v6-bidir-acl",
                                    "override": False,
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}

@dbarrosop dbarrosop self-assigned this Apr 16, 2017
@mirceaulinic mirceaulinic modified the milestones: 0.25.0, 0.24.0 May 30, 2017
@mirceaulinic
Copy link
Member

@bewing - what's the status here?

@mirceaulinic mirceaulinic modified the milestones: 0.25.0, APPROVED, BLOCKED Oct 7, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants