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

fortios_routerbgp_neighbor default weight #342

Open
zippanto opened this issue Oct 9, 2024 · 1 comment
Open

fortios_routerbgp_neighbor default weight #342

zippanto opened this issue Oct 9, 2024 · 1 comment

Comments

@zippanto
Copy link

zippanto commented Oct 9, 2024

Hi,

We are testing on FortiOS 7.2.8 and it seems on the firewall the default weight value for a BGP neighbor is 4294967295. This seems incorrect even according to the CLI:

weight    Enter an integer value from <0> to <65535> (default: <0>).

Default value:

FW (192.168.0.1) # show full-configuration
config neighbor
    edit "192.168.0.1"
        .
        .
        .
        set weight 4294967295

Not sure if this is fixed in any future FortiOS version. However we are unable to set this default value using terraform as it only allows values 0 - 65535.

Please advise.

Thanks.

@MaxxLiu22
Copy link

Hi @zippanto ,

Thank you for your question. I have noticed this behavior as well, and it may be an intentional design choice. This also applies to the 'keep-alive-timer' and 'connect-timer,' which are designed as integers without assigned default values. In some cases, a value of 0 can have specific meaning, so FOS might use the highest unsigned 32-bit integer (4294967295) to represent that these arguments are non-functional. However, I will reach out to the API team for further clarification and to confirm the correct procedure for unsetting these values via the API.

Thanks,
Maxx

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

2 participants