I'm unable to delete interfaces under system flow-accounting
I have changed the $table_chain_entry from early to late in the /opt/vyatta/sbin/vyatta-netflow.pl file
And @Viacheslav on suggested on slack that it might be an issue, and that I have to delete each interface in the right order they where added, with the correct $table_chain_entry value.
All interfaces configured under system flow-accounting exist on my system
I tried to:
- Delete each interface 1 by 1 when the value was 'late', every commit fails.
- Delete each interface 1 by 1 when the value was 'early', every commit fails.
- Add a fifth interface and delete it successfully.
olof@o6-80003# grep 'my $table_chain_entry' /opt/vyatta/sbin/vyatta-netflow.pl my $table_chain_entry = "late"; [edit] olof@o6-80003# show system flow-accounting interface eth0.42 interface eth1.1806 interface ifb042 interface tun0 netflow { server 172.23.253.21 { port 4739 } source-ip 172.18.255.26 version 10 } syslog-facility daemon [edit] olof@o6-80003# delete system flow-accounting interface eth0.42 [edit] olof@o6-80003# commit [ system flow-accounting interface eth0.42 ] Error: failed to find target [[system flow-accounting]] failed Commit failed [edit] olof@o6-80003# discard Changes have been discarded [edit] olof@o6-80003# delete system flow-accounting interface eth1.1806 [edit] olof@o6-80003# commit [ system flow-accounting interface eth1.1806 ] Error: failed to find target [[system flow-accounting]] failed Commit failed [edit] olof@o6-80003# discard Changes have been discarded [edit] olof@o6-80003# delete system flow-accounting interface ifb042 [edit] olof@o6-80003# commit [ system flow-accounting interface ifb042 ] Error: failed to find target [[system flow-accounting]] failed Commit failed [edit] olof@o6-80003# discard Changes have been discarded [edit] olof@o6-80003# delete system flow-accounting interface tun0 [edit] olof@o6-80003# commit [ system flow-accounting interface tun0 ] Error: failed to find target [[system flow-accounting]] failed Commit failed [edit] olof@o6-80003# discard Changes have been discarded
Adding an interface, and deleting it works fine.
olof@o6-80003# set system flow-accounting interface eth1.1728 [edit] olof@o6-80003# show system flow-accounting interface eth0.42 interface eth1.1806 interface ifb042 interface tun0 +interface eth1.1728 netflow { server 172.23.253.21 { port 4739 } source-ip 172.18.255.26 version 10 } syslog-facility daemon [edit] olof@o6-80003# commit [ system flow-accounting interface eth1.1728 ] Adding flow-accounting for [eth1.1728] [edit] olof@o6-80003# delete system flow-accounting interface eth1.1728 [edit] olof@o6-80003# show system flow-accounting interface -interface eth1.1728 interface eth0.42 interface eth1.1806 interface ifb042 interface tun0 [edit] olof@o6-80003# commit [ system flow-accounting interface eth1.1728 ] Removing flow-accounting for [eth1.1728]
When deleting a non-working interface from the config, notice how the "compare" shows that all other interfaces has "changed"
olof@o6-80003# delete system flow-accounting interface eth0.42 [edit] olof@o6-80003# show system flow-accounting interface -interface eth0.42 >interface eth1.1806 >interface ifb042 >interface tun0 [edit] olof@o6-80003# commit [ system flow-accounting interface eth0.42 ] Error: failed to find target