Hi @Muthukumar1 !
If your router is running Comware 7, then it should have this command - https://support.hpe.com/hpesc/public/docDisplay?docId=c03890429&docLocale=en_US , Page 29. But you must have a line card (LPU Module) that either has Layer 2 (bridged) interfaces or interfaces that can be converted to bridged with command "port link-mode bridge".
Also, keep in mind that you can connect BAGG on 5900 to a RAGG with sub-interfaces on HSR6800, because technically these two configs are equal:
Configuration #1:
interface Bridge-Aggregation1
link-aggregation mode dynamic
port link-type trunk
port trunk permit vlan 10 20
#
inteface Vlan-interface10
ip address 10.0.10.1 24
#
inteface Vlan-interface20
ip address 10.0.20.1 24
Configuration #2:
interface Route-aggregation1
link-aggregation mode dynamic
#
interface Route-aggregation1.10
vlan-type dot1q vid 10
ip address 10.0.10.1 24
#
interface Route-aggregation1.20
vlan-type dot1q vid 20
ip address 10.0.20.1 24
However, if you don't feel comfortable with BAGG-to-RAGG config, keep it simple and use BAGG on both sides if available. Aslo you must use BAGG-to-BAGG when on the HSR6800 you have other ports except aggregation in Vlans that traverses the aggregation like VLAN 10 and 20 in my scenario. So BAGG-to-RAGG is ok when you need to terminate VLAN on the HSR.