{"action":"created","issue":{"url":"https://api.github.com/repos/Juniper/netconf-java/issues/9","labels_url":"https://api.github.com/repos/Juniper/netconf-java/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/Juniper/netconf-java/issues/9/comments","events_url":"https://api.github.com/repos/Juniper/netconf-java/issues/9/events","html_url":"https://github.com/Juniper/netconf-java/issues/9","id":59787057,"number":9,"title":"Is it possible to execute the Configuration scripts in the parallel using multi threading ?","user":{"login":"sravanmedarapu","id":4507565,"avatar_url":"https://avatars.githubusercontent.com/u/4507565?v=3","gravatar_id":"","url":"https://api.github.com/users/sravanmedarapu","html_url":"https://github.com/sravanmedarapu","followers_url":"https://api.github.com/users/sravanmedarapu/followers","following_url":"https://api.github.com/users/sravanmedarapu/following{/other_user}","gists_url":"https://api.github.com/users/sravanmedarapu/gists{/gist_id}","starred_url":"https://api.github.com/users/sravanmedarapu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sravanmedarapu/subscriptions","organizations_url":"https://api.github.com/users/sravanmedarapu/orgs","repos_url":"https://api.github.com/users/sravanmedarapu/repos","events_url":"https://api.github.com/users/sravanmedarapu/events{/privacy}","received_events_url":"https://api.github.com/users/sravanmedarapu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-03-04T11:46:00Z","updated_at":"2015-03-09T08:38:33Z","closed_at":null,"body":"Hi All,\r\n\r\nI have a requirement to execute the configuration related code(adding and deleting access-lists) in parallel, I am using multi threading concept to execute the commands.\r\n\r\nbut only 1 st thread's device instance is able to execute the commands , from 2 nd thread instance device.loadSetConfiguration(\"command\") is  throwing \"Load operation returned error\" [ here I am creating different Device object for each thread]\r\n\r\nCan some help me on this, Does JunOS support parallel execution .\r\n\r\nDevice I am using Juniper Ex 4200 series 480PoE+.\r\n\r\nThanks in Advance\r\nSravan Medarapu"},"comment":{"url":"https://api.github.com/repos/Juniper/netconf-java/issues/comments/77816630","html_url":"https://github.com/Juniper/netconf-java/issues/9#issuecomment-77816630","issue_url":"https://api.github.com/repos/Juniper/netconf-java/issues/9","id":77816630,"user":{"login":"sravanmedarapu","id":4507565,"avatar_url":"https://avatars.githubusercontent.com/u/4507565?v=3","gravatar_id":"","url":"https://api.github.com/users/sravanmedarapu","html_url":"https://github.com/sravanmedarapu","followers_url":"https://api.github.com/users/sravanmedarapu/followers","following_url":"https://api.github.com/users/sravanmedarapu/following{/other_user}","gists_url":"https://api.github.com/users/sravanmedarapu/gists{/gist_id}","starred_url":"https://api.github.com/users/sravanmedarapu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sravanmedarapu/subscriptions","organizations_url":"https://api.github.com/users/sravanmedarapu/orgs","repos_url":"https://api.github.com/users/sravanmedarapu/repos","events_url":"https://api.github.com/users/sravanmedarapu/events{/privacy}","received_events_url":"https://api.github.com/users/sravanmedarapu/received_events","type":"User","site_admin":false},"created_at":"2015-03-09T08:38:33Z","updated_at":"2015-03-09T08:38:33Z","body":"Hi Jainpriyal,\r\n\r\nhere is the sample commands I am executing for each thread\r\n\r\nthread1: \r\n        set firewall family ethernet-switching filter block-to-server-vlan-VLAN-A term 1 from destination-address 192.168.111.0/24\r\n\r\nthread2:\r\n       set firewall family ethernet-switching filter block-to-server-vlan-VLAN-A term 1 then accept\r\n\r\nthread3:\r\n        set firewall family ethernet-switching filter block-to-server-vlan-VLAN-A term DENY from destination-address 192.168.245.0/24\r\n\r\nthread4: \r\n    set firewall family ethernet-switching filter block-to-server-vlan-VLAN-A term DENY then discard\r\n\r\nthread5:\r\n  set firewall family ethernet-switching filter block-to-server-vlan-VLAN-A term ANY then accept\r\n\r\nAnd I can see only 1 thread able to commit successfully and rest of the threads are throwing following exception\r\n\r\n      Error Message:Commit operation returned error.\r\n         net.juniper.netconf.CommitException: Commit operation returned error.\r\n\tat net.juniper.netconf.NetconfSession.commit(NetconfSession.java:671)\r\n\tat net.juniper.netconf.Device.commit(Device.java:860)\r\n\r\n "}}