VictorRobellini / pfSense-Dashboard

A functional and useful dashboard for pfSense that utilizes influxdb, grafana and telegraf
670 stars 187 forks source link

Unable to edit 2nd and 3rd Lan Interface #30

Closed travisboss closed 3 years ago

travisboss commented 3 years ago

I have three vlans setup and I can edit the main lan igb1 but I am unable to edit the view for igb.1.107 and igb1.200 is there is setting in the JSON I can edit to allow editing these additional interfaces? Reason being is I want to add ipv6 to the separate interfaces.

VictorRobellini commented 3 years ago

You can customize the interfaces in the list by modifying the $LAN_Interfaces variable. What does your $LAN_Interfaces regex look like?

https://github.com/VictorRobellini/pfSense-Dashboard#grafana

LAN_Interfaces - $LAN_Interfaces uses a regex to remove any interfaces you don't want to be grouped as LAN. The filtering happens in the "Regex" field. I use a negative lookahead regex to match the interfaces I want excluded. It should be pretty easy to understand what you need to do here. I have excluded igb0 (WAN) and igb1,igb2,igb3 (only used to host vlans).

travisboss commented 3 years ago

All I have I have there /^(?!igb0$)/ which is my wan interface.

All interfaces are being displayed just when I click the drop down on interface 2 and 3 there is no edit option.

VictorRobellini commented 3 years ago

If the regex is empty are all of the interfaces listed? image

travisboss commented 3 years ago

Sorry for the delay. Yes if I remove igb0 from the Regex it does add igb0. To be clear my interfaces are all there I just cannot edit anything past the first LAN interface.

VictorRobellini commented 3 years ago

I'm not sure I understand. Can you provide a screenshot that includes your regex?

travisboss commented 3 years ago
Screen Shot 2021-03-16 at 11 43 40 AM

Here is a screenshot of the page which is showing the correct lan interfaces.

VictorRobellini commented 3 years ago

Is the issue that you can't modify the list of interfaces in the drop down list on the main dashboard? Or are you trying to modify the panels for specific interfaces? If you are trying to edit the panels for specific interfaces, you are going to need to get your hands dirty with Grafana. The panels for the Lan interfaces are duplicated for each Lan interface and you can only modify the top Lan interface which will then be reflected for the other Lan interfaces.

VictorRobellini commented 3 years ago

No response.