Hi,

We are trying to test a use case in Srv6 proxy using VPP v22.02, where we want 
to configure a End.AD.Flow sid that has iff interface as vlan sub interface. 
But when we run the below command, we see the error:-

vpp# sr localsid address 2001:f1:f1:11::111 behavior end.ad.flow nh 9.9.10.102 
oif GigabitEthernet0/9/0 iif GigabitEthernet0/8/0.100
sr localsid: Error on the plugin based localsid creation.

On investigating this issue, we found a code snippet in file 
"src/plugins/srv6-ad-flow/ad-flow.c" where it finds the interface type for the 
iif interface configured, and if it is not a hardware interface (in our case it 
is VNET_SW_INTERFACE_TYPE_SUB), it returns with the above error.

vnet_sw_interface_t *sw =
vnet_get_sw_interface (sm->vnet_main, ls_mem->sw_if_index_in);
if (sw->type != VNET_SW_INTERFACE_TYPE_HARDWARE)
{
adj_unlock (ls_mem->nh_adj);
clib_mem_free (ls_mem);
return SID_CREATE_INVALID_IFACE_TYPE;
}

We found an RFC, which explains the working of srv6 flow proxy and it states 
that "If the proxy and the service both support 802.1Q, IFACE-OUT and IFACE-IN 
can also represent sub-interfaces."
https://datatracker.ietf.org/doc/html/draft-eden-srv6-tagging-proxy-00

Any specific reason why we expect the iif interface to be a hardware interface 
and not a sub-interface?

Thanks and Regards,
Chinmaya Agarwal.
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#21896): https://lists.fd.io/g/vpp-dev/message/21896
Mute This Topic: https://lists.fd.io/mt/93718700/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/leave/1480452/21656/631435203/xyzzy 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to