{   
    "transforms":[
        {
            "srcFactory"  : "H3C",
            "srcType"     : "",
            "srcVersion"  : "default",
            "destFactory" : "ruijie",
            "destType"    : "",
            "destVersion" : "default",
            "commands"    : [
                {
                    "layer"   : "global",
                    "src"     : "#",
                    "dst"     : "!"
                },
                {
                    "layer"   : "global",
                    "src"     : "return",
                    "dst"     : "end"
                },
                {
                    "layer"   : "global",
                    "src"     : "sysname @a1",
                    "dst"     : "#hostname @a1"
                },
                {
                    "layer"   : "global",
                    "src"     : "clock timezone @a1 @a2 08:00:00",
                    "dst"     : "#clock timezone @a1 @a2 59"
                },
                {
                    "layer"   : "global",
                    "src"     : "dhcp relay server-group @a1 ip @a2",
                    "dst"     : "#ip helper-address @a2\r\n ip dhcp relay check server-id"
                },
                {
                    "layer"   : "global",
                    "src"     : "vlan @a1",
                    "dst"     : "vlan @a1"
                },
                {
                    "layer"   : "vlan @b1",
                    "src"     : "description @a1",
                    "dst"     : "name @a1"
                },
                {
                    "layer"   : "vlan @b1",
                    "src"     : "description @a1",
                    "dst"     : "name @a1"
                },
                {
                    "layer"   : "global",
                    "src"     : "interface vlan-interface @a1",
                    "dst"     : "interface vlan @a1"
                },
                {
                    "layer"   : "interface vlan-interface @b1",
                    "src"     : "ip address @a1 @a2",
                    "dst"     : "ip address @a1 @a2"
                },
                {
                    "layer"   : "interface vlan-interface @b1",
                    "src"     : "ip address @a1 @a2 sub",
                    "dst"     : "ip address @a1 @a2 secondary"
                },
                {
                    "layer"   : "global",
                    "src"     : "interface GigabitEthernet @a1",
                    "dst"     : "interface GigabitEthernet @a1"
                },
                {
                    "layer"   : "interface GigabitEthernet @b1",
                    "src"     : "ip address @a1 @a2",
                    "dst"     : "ip address @a1 @a2"
                },
                {
                    "layer"   : "interface GigabitEthernet @b1",
                    "src"     : "port link-type trunk",
                    "dst"     : "switchport\r\nswitchport mode trunk"
                },
                {
                    "layer"   : "interface GigabitEthernet @b1",
                    "src"     : "port trunk permit vlan @a1 @a2 @a3",
                    "dst"     : "switchport mode trunk\r\nswitchport trunk allowed vlan @a1 @a2 @a3"
                },
                {
                    "layer"   : "interface GigabitEthernet @b1",
                    "src"     : "port access vlan @a1",
                    "dst"     : "switchport access vlan @a1"
                },
                {
                    "layer"   : "interface GigabitEthernet @b1",
                    "src"     : "mac-address max-mac-count @a1",
                    "dst"     : "max-dynamic-mac-count @a1"
                },
                {
                    "layer"   : "interface GigabitEthernet @b1",
                    "src"     : "port link-aggregation group @a1",
                    "dst"     : "interface aggregateport @a1"
                },
                {
                    "layer"   : "interface GigabitEthernet @b1",
                    "src"     : "dhcp-snooping trust",
                    "dst"     : "ip dhcp snooping trust"
                },
                {
                    "layer"   : "interface GigabitEthernet @b1",
                    "src"     : "port link-type hybrid",
                    "dst"     : "switchport mode hybrid"
                },
                {
                    "layer"   : "global",
                    "src"     : "dhcp-snooping",
                    "dst"     : "ip dhcp snooping"
                },
                {
                    "layer"   : "global",
                    "src"     : "link-aggregation group @a1 mode manual",
                    "dst"     : "enable service telnet-server"
                },
                {
                    "layer"   : "global",
                    "src"     : "telnet server enable",
                    "dst"     : "#enable service telnet-server"
                },
                {
                    "layer"   : "global",
                    "src"     : "user-interface vty @a1",
                    "dst"     : "line vty @a1"
                },
                {
                    "layer"   : "user-interface vty @b1",
                    "src"     : "user privilege level @a1",
                    "dst"     : "privilege level @a1"
                },
                {
                    "layer"   : "user-interface vty @b1",
                    "src"     : "screen-length @a1",
                    "dst"     : "length @a1"
                },
                {
                    "layer"   : "user-interface vty @b1",
                    "src"     : "history-command max-size @a1",
                    "dst"     : "history size @a1"
                },
                {
                    "layer"   : "user-interface vty @b1",
                    "src"     : "idle-timeout @a1",
                    "dst"     : "exec-timeout @a1"
                },
                {
                    "layer"   : "user-interface vty @b1",
                    "src"     : "idle-timeout @a1 @a2",
                    "dst"     : "exec-timeout @a1 @a2"
                },
                {
                    "layer"   : "user-interface vty @b1",
                    "src"     : "authentication-mode none",
                    "dst"     : "no login"
                },
                {
                    "layer"   : "user-interface vty @b1",
                    "src"     : "authentication-mode password\r\nset authentication password simple @a1",
                    "dst"     : "password @a1"
                },
                {
                    "layer"   : "user-interface vty @b1",
                    "src"     : "speed @a1",
                    "dst"     : "speed @a1"
                },
                {
                    "layer"   : "user-interface vty @b1",
                    "src"     : "acl @a1 inbound",
                    "dst"     : "access-class @a1 in"
                },
                {
                    "layer"   : "user-interface vty @b1",
                    "src"     : "acl @a1 outbound",
                    "dst"     : "access-class @a1 outbound"
                },
                {
                    "layer"   : "global",
                    "src"     : "local-user @a1",
                    "dst"     : "username @a1"
                },
                {
                    "layer"   : "local-user @b1",
                    "src"     : "password simple @a1",
                    "dst"     : "username @b1 password @a1"
                },
                {
                    "layer"   : "local-user @b1",
                    "src"     : "level @a1",
                    "dst"     : "username @b1 privilege @a1"
                },
                {
                    "layer"   : "global",
                    "src"     : "user-interface vty @a1 @a2",
                    "dst"     : "line vty @a1 @a2"
                },
                {
                    "layer"   : "user-interface vty @b1 @b2",
                    "src"     : "user privilege level @a1",
                    "dst"     : "privilege level @a1"
                },
                {
                    "layer"   : "user-interface vty @b1 @b2",
                    "src"     : "screen-length @a1",
                    "dst"     : "length @a1"
                },
                {
                    "layer"   : "user-interface vty @b1 @b2",
                    "src"     : "history-command max-size @a1",
                    "dst"     : "history size @a1"
                },
                {
                    "layer"   : "user-interface vty @b1 @b2",
                    "src"     : "idle-timeout @a1",
                    "dst"     : "exec-timeout @a1"
                },
                {
                    "layer"   : "user-interface vty @b1 @b2",
                    "src"     : "idle-timeout @a1 @a2",
                    "dst"     : "exec-timeout @a1 @a2"
                },
                {
                    "layer"   : "user-interface vty @b1 @b2",
                    "src"     : "authentication-mode none",
                    "dst"     : "no login"
                },
                {
                    "layer"   : "user-interface vty @b1 @b2",
                    "src"     : "authentication-mode password\r\nset authentication password simple @a1",
                    "dst"     : "password @a1"
                },
                {
                    "layer"   : "user-interface vty @b1 @b2",
                    "src"     : "speed @a1",
                    "dst"     : "speed @a1"
                },
                {
                    "layer"   : "user-interface vty @b1 @b2",
                    "src"     : "acl @a1 inbound",
                    "dst"     : "access-class @a1 in"
                },
                {
                    "layer"   : "user-interface vty @b1 @b2",
                    "src"     : "acl @a1 outbound",
                    "dst"     : "access-class @a1 outbound"
                },
                {
                    "layer"   : "global",
                    "src"     : "user-interface aux @a1",
                    "dst"     : "line aux @a1"
                },
                {
                    "layer"   : "user-interface aux @b1",
                    "src"     : "user privilege level @a1",
                    "dst"     : "privilege level @a1"
                },
                {
                    "layer"   : "user-interface aux @b1",
                    "src"     : "screen-length @a1",
                    "dst"     : "length @a1"
                },
                {
                    "layer"   : "user-interface aux @b1",
                    "src"     : "history-command max-size @a1",
                    "dst"     : "history size @a1"
                },
                {
                    "layer"   : "user-interface aux @b1",
                    "src"     : "idle-timeout @a1",
                    "dst"     : "exec-timeout @a1"
                },
                {
                    "layer"   : "user-interface aux @b1",
                    "src"     : "idle-timeout @a1 @a2",
                    "dst"     : "exec-timeout @a1 @a2"
                },
                {
                    "layer"   : "user-interface aux @b1",
                    "src"     : "authentication-mode none",
                    "dst"     : "no login"
                },
                {
                    "layer"   : "user-interface aux @b1",
                    "src"     : "authentication-mode password\r\nset authentication password simple @a1",
                    "dst"     : "password @a1"
                },
                {
                    "layer"   : "user-interface aux @b1",
                    "src"     : "speed @a1",
                    "dst"     : "speed @a1"
                },
                {
                    "layer"   : "user-interface aux @b1",
                    "src"     : "acl @a1 inbound",
                    "dst"     : "access-class @a1 in"
                },
                {
                    "layer"   : "user-interface aux @b1",
                    "src"     : "acl @a1 outbound",
                    "dst"     : "access-class @a1 outbound"
                },
                {
                    "layer"   : "global",
                    "src"     : "user-interface console @a1",
                    "dst"     : "line console @a1"
                },
                {
                    "layer"   : "user-interface console @b1",
                    "src"     : "user privilege level @a1",
                    "dst"     : "privilege level @a1"
                },
                {
                    "layer"   : "user-interface console @b1",
                    "src"     : "screen-length @a1",
                    "dst"     : "length @a1"
                },
                {
                    "layer"   : "user-interface console @b1",
                    "src"     : "history-command max-size @a1",
                    "dst"     : "history size @a1"
                },
                {
                    "layer"   : "user-interface console @b1",
                    "src"     : "idle-timeout @a1",
                    "dst"     : "exec-timeout @a1"
                },
                {
                    "layer"   : "user-interface console @b1",
                    "src"     : "idle-timeout @a1 @a2",
                    "dst"     : "exec-timeout @a1 @a2"
                },
                {
                    "layer"   : "user-interface console @b1",
                    "src"     : "authentication-mode none",
                    "dst"     : "no login"
                },
                {
                    "layer"   : "user-interface console @b1",
                    "src"     : "authentication-mode password\r\nset authentication password simple @a1",
                    "dst"     : "password @a1"
                },
                {
                    "layer"   : "user-interface console @b1",
                    "src"     : "speed @a1",
                    "dst"     : "speed @a1"
                },
                {
                    "layer"   : "user-interface console @b1",
                    "src"     : "acl @a1 inbound",
                    "dst"     : "access-class @a1 in"
                },
                {
                    "layer"   : "user-interface console @b1",
                    "src"     : "acl @a1 outbound",
                    "dst"     : "access-class @a1 outbound"
                },
                {
                    "layer"   : "global",
                    "src"     : "ip http enable",
                    "dst"     : "enable service web-server http"
                },
                {
                    "layer"   : "global",
                    "src"     : "ip route-static @a1 @a2 @a3",
                    "dst"     : "#ip route @a1 @a2 @a3"
                },
                {
                    "layer"   : "global",
                    "src"     : "mac-address timer aging @a1",
                    "dst"     : "mac-address-table aging-time @a1"
                }
            ]
        }
    ]
}
