mwood77 / pf2opn

An in-browser pfsense to opnsense converter.
https://www.pf2opn.com
Other
88 stars 7 forks source link

"Invalid integer value" for gateway weight after importing config #39

Open Flole998 opened 3 days ago

Flole998 commented 3 days ago

I attempted to convert a config and I am now seeing this in the logs:

[21-Sep-2024 22:09:10 Europe/Berlin] [gateway_item.XXXXXXXXXXXXXXXXXX.weight] Invalid integer value.
[21-Sep-2024 22:09:10 Europe/Berlin] [gateway_item.XXXXXXXXXXXXXXXXXX.weight] Invalid integer value.
[21-Sep-2024 22:09:10 Europe/Berlin] [gateway_item.XXXXXXXXXXXXXXXXXX.interface] Option not in list.
[21-Sep-2024 22:09:10 Europe/Berlin] [gateway_item.XXXXXXXXXXXXXXXXXX.interface] Option not in list.
[21-Sep-2024 22:09:10 Europe/Berlin] [gateway_item.XXXXXXXXXXXXXXXXXX.interface] Option not in list.
[21-Sep-2024 22:09:10 Europe/Berlin] [gateway_item.XXXXXXXXXXXXXXXXXX.interface] Option not in list.
[21-Sep-2024 22:09:10 Europe/Berlin] [gateway_item.XXXXXXXXXXXXXXXXXX.weight] Invalid integer value.
[21-Sep-2024 22:09:10 Europe/Berlin] [gateway_item.XXXXXXXXXXXXXXXXXX.weight] Invalid integer value.

The weights in the converted config are 1, 5 and 20. In the opnSense WebUI they all show as 255 or "defunct".

mwood77 commented 3 days ago

Hmm, this is a new one. Can you share a data-scrubbed snippet of the object?

Flole998 commented 2 days ago

The resulting config looks like this:

<gateway_item><interface>wan</interface><gateway>dynamic</gateway><name>WAN_DHCP6</name><weight>20</weight><ipprotocol>inet6</ipprotocol><descr>Interface WAN_DHCP6 Gateway</descr>...