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

Adjust regex for VRF to include IOSXR config style #235

Closed
mjohnste opened this issue Apr 7, 2022 · 1 comment
Closed

Adjust regex for VRF to include IOSXR config style #235

mjohnste opened this issue Apr 7, 2022 · 1 comment

Comments

@mjohnste
Copy link

mjohnste commented Apr 7, 2022

Adjust the vrf() property method to include a regex which matches IOSXR style VRF interface definition.

@property
def vrf(self):
    retval = self.re_match_iter_typed(
        r"^\s*(ip\s+)*vrf\sforwarding\s(\S+)$", result_type=str, group=2, default=""
    )
    return

The IOSXR VRF interface config is:

interface NAME
 vrf VRFNAME
@mpenning
Copy link
Owner

mpenning commented Apr 16, 2022

I just pushed the new ciscoconfparse/models_iosxr.py to main.

I'm in the middle of preparing for some major feature additions in 1.7.0 so this won't hit pypi for a while yet. Nonetheless, you can get the new models_iosxr.py file from github. I doubt this is going to be useful because I've never focused an effort on iosxr config parsing yet.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants