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

fix policy network-list support #121

Closed
wants to merge 1 commit into
base: master
from

Conversation

Projects
None yet
2 participants
@richard28530

richard28530 commented Oct 17, 2017

No description provided.

@greearb

This comment has been minimized.

Show comment
Hide comment
@greearb

greearb Oct 17, 2017

Owner

Please describe what this fixes, maybe with an example policy snippet?

Owner

greearb commented Oct 17, 2017

Please describe what this fixes, maybe with an example policy snippet?

@richard28530

This comment has been minimized.

Show comment
Hide comment
@richard28530

richard28530 Oct 18, 2017

export connected route with bgp policy (network4-list), policy will fail with parse syntax error
set policy policy-statement bgp-out term t1 from protocol connected
set policy policy-statement bgp-out term t1 from network4-list n1
set policy policy-statement bgp-out then accept
set policy network4-list n1 network 10.10.10.0/24
set policy network4-list n1 network 11.11.11.0/24
set protocols bgp export bgp-out
set protocols bgp bgp-id 1.1.1.36
set protocols bgp local-as 100
set protocols bgp enable-4byte-as-numbers true
commit

[policy] Handling method for policy/0.1/update_term_block failed: XrlCmdError Failure reason: Update of policy bgp-out term t1 failed: ConfError from line 88 of configuration.cc: In policy bgp-out: Syntax error in term t1 block source statement=(network4 <= SET n1;): Error on line 1 near (12): syntax error

richard28530 commented Oct 18, 2017

export connected route with bgp policy (network4-list), policy will fail with parse syntax error
set policy policy-statement bgp-out term t1 from protocol connected
set policy policy-statement bgp-out term t1 from network4-list n1
set policy policy-statement bgp-out then accept
set policy network4-list n1 network 10.10.10.0/24
set policy network4-list n1 network 11.11.11.0/24
set protocols bgp export bgp-out
set protocols bgp bgp-id 1.1.1.36
set protocols bgp local-as 100
set protocols bgp enable-4byte-as-numbers true
commit

[policy] Handling method for policy/0.1/update_term_block failed: XrlCmdError Failure reason: Update of policy bgp-out term t1 failed: ConfError from line 88 of configuration.cc: In policy bgp-out: Syntax error in term t1 block source statement=(network4 <= SET n1;): Error on line 1 near (12): syntax error

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