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

Function input parameter prefix set #9

Open
anp135 opened this issue Oct 28, 2020 · 0 comments
Open

Function input parameter prefix set #9

anp135 opened this issue Oct 28, 2020 · 0 comments

Comments

@anp135
Copy link

anp135 commented Oct 28, 2020

function fn_prfx_chk(prefix set prfx_accept) {
    print "net: ", net, "; prefix set: ", prfx_accept, net !~ prfx_accept;
}
...
protocol bgp .... {
    ...
    input filter { fn_prfx_chk([ 198.51.100.0/24, 203.0.113.0/24+ ]); };
    ...
}

In the log file we see:

<INFO> net: 98.51.100.0/24; prefix set: [98.51.100.0/120{::1ff}, 203.0.113.0/120{::1ff}]FALSE
<INFO> net: 203.0.113.0/24; prefix set: [98.51.100.0/120{::1ff}, 203.0.113.0/120{::1ff}]FALSE

We tried define prefix set and set to function input param prefix set variable, but the same: durind prefix set comes to func over input parameter, then all prefixes modified: /24 -> /120{::1ff}

How we can put pefix set as input parameters to functions?

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

No branches or pull requests

1 participant