Community discussions

MikroTik App
 
olegon
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 90
Joined: Sat Sep 09, 2017 11:15 am

Very strange replacement in export

Fri Apr 22, 2022 9:05 pm

I wrote while setup
set gw vpn; accept
and see it in Winbox now, but export show-sensitive shows
# apr/22/2022 20:59:34 by RouterOS 7.2.1
# software id = *****
#
# model = RouterBOARD 3011UiAS
/routing filter rule
add chain=bgp_in disabled=no rule="set gw *13; accept"
what is this? why "*13", not "vpn"?
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11982
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Very strange replacement in export

Fri Apr 22, 2022 10:12 pm

is the internal interface ID
 
olegon
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 90
Joined: Sat Sep 09, 2017 11:15 am

Re: Very strange replacement in export

Fri Apr 22, 2022 10:19 pm

Thank you, yes, this is internal id of interface, but question is why it translate name to id in export? How to restrict this manner?
I using export for backup in case of hardware lost, but with this translations I can't apply script to another router and can't understand it :(
 
sindy
Forum Guru
Forum Guru
Posts: 10206
Joined: Mon Dec 04, 2017 9:19 pm

Re: Very strange replacement in export

Fri Apr 22, 2022 10:32 pm

It's a bug, open a support ticket. I have just tested it, and not only that the export shows the internal interface id, but it even shows a wrong one. Try /interface/print where .id=*13 - in my case, it looks as follows:

[me@chr-7-1] > routing/filter/rule/print
Flags: X - disabled, I - inactive
0 chain=test rule="set gw huhu ; accept"
1 chain=test rule="set gw eoip1 ; accept"

[me@chr-7-1] > routing/filter/rule/export
# apr/22/2022 21:28:34 by RouterOS 7.2.1
# software id =
#
/routing filter rule
add chain=test disabled=no rule="set gw *13 ; accept"
add chain=test disabled=no rule="set gw *9 ; accept"

[me@chr-7-1] > interface/print where .id=*13
Flags: R - RUNNING; S - SLAVE
Columns: NAME, TYPE, ACTUAL-MTU, MAC-ADDRESS
# NAME TYPE ACTUAL-MTU MAC-ADDRESS
18 RS vxlan1 vxlan 1300 76:B2:F6:54:DC:DC

[me@chr-7-1] > interface/print where .id=*9
Flags: R - RUNNING
Columns: NAME, TYPE, ACTUAL-MTU, L2MTU, MAC-ADDRESS
# NAME TYPE ACTUAL-MTU L2MTU MAC-ADDRESS
7 R eoip1 eoip 1458 65535 FE:85:29:E2:03:AF
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11982
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Very strange replacement in export

Fri Apr 22, 2022 10:45 pm

I think is already solved, please wait new 7.3

What's new in 7.3beta34 (2022-Apr-20 08:23):

[...]
*) export - fixed value ID exporting that does not refer to any name
[...]
 
olegon
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 90
Joined: Sat Sep 09, 2017 11:15 am

Re: Very strange replacement in export

Fri Apr 22, 2022 10:53 pm

Thank you, I already opened support ticket with link to this thread
SUP-80467
waiting...

Who is online

Users browsing this forum: Bing [Bot], jaclaz, jezwan, kiyre and 26 guests