Skip to content

rule add creates invalid rule entries #964

Closed
@gthiemonge

Description

@gthiemonge

Using pyroute2 0.7.1, adding rules leads to incorrect entries in the rule list, and the rules are not correctly applied by the kernel.

(Issue detected in the OpenStack Octavia project)

I reproduced it with this simple script:

import pyroute2

with pyroute2.IPRoute() as ipr:
    ipr.rule('add', src="10.1.1.1", src_len=32, table=1)

then ip rule shows a strange entry that contains a none field:

$ ip rule | grep 10.1
32000:  from 10.1.1.1 lookup 1 none

Note: 0.6.13 doesn't have this issue

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions