

insert into /test/node (id, state) values ('nnode:server3', 'state1'  )
;

insert into /test/node (id, state) values ('nnode:EYD206-2210-1', 'state22')
;

insert into /test/interface (id, nodename) values ('iinterface:server3_ETH-0#nnode:server3', 'server3')
;

insert into /test/interface (id, nodename) values ('iinterface:EYD206-2210-1_Port 3/1#nnode:EYD206-2210-1', 'EYD206-2210-1')
;

insert into /test/node2 (id, state) values ('node2:DFD291-2210-1', 'BN')
;

update /test/node2 set interface = 'interface:DFD291-2210-1_Port 5/3#node:DFD291-2210-1' where id = 'node2:DFD291-2210-1' and interface = nil
;

update /test/node2 set interface = interface + 'interface:REY3328-2210-1_Port 4/6#node:REY3328-2210-1' where id = 'node2:REY3328-2210-1' and interface <> nil
;

/**
sleep(1s)
**/
;
