blob: 1d8fa12acc5cc3d2ee71a0f8acbdfb70d7040702 [file] [log] [blame]
Shad Ansari2f7f9be2017-06-07 13:34:53 -07001# $language = "VBScript"
2# $interface = "1.0"
3
4Sub SendApplicationCommand(shell_command)
5 crt.Screen.Send shell_command & VbCr & VbCr
6 crt.sleep 1000
7End Sub
8
9Sub main
10
11 pon_ni = inputbox("PON NI: [0-15]" )
12 onu = inputbox("ONU ID: [0-127]" )
13 gem = inputbox("GEM PORT ID?" )
14
15 SendApplicationCommand "/~ off "
16 crt.sleep 100
17 SendApplicationCommand "/api/set object=gpon_gem_port pon_ni=" & pon_ni & " gem_port_id=" & gem & " configuration.direction=bidirectional configuration.type=unicast onu_id=" & onu & " downstream_encryption_mode=disable upstream_destination_queue=data control=enable"
18 crt.sleep 100
19 SendApplicationCommand "/~ on "
20 crt.sleep 100
21
22End Sub