{"action":"created","issue":{"url":"https://api.github.com/repos/p4lang/behavioral-model/issues/342","repository_url":"https://api.github.com/repos/p4lang/behavioral-model","labels_url":"https://api.github.com/repos/p4lang/behavioral-model/issues/342/labels{/name}","comments_url":"https://api.github.com/repos/p4lang/behavioral-model/issues/342/comments","events_url":"https://api.github.com/repos/p4lang/behavioral-model/issues/342/events","html_url":"https://github.com/p4lang/behavioral-model/issues/342","id":224771604,"number":342,"title":"runtime_CLI exits when mc_dump command is used","user":{"login":"karthik-k-github","id":28083198,"avatar_url":"https://avatars3.githubusercontent.com/u/28083198?v=3","gravatar_id":"","url":"https://api.github.com/users/karthik-k-github","html_url":"https://github.com/karthik-k-github","followers_url":"https://api.github.com/users/karthik-k-github/followers","following_url":"https://api.github.com/users/karthik-k-github/following{/other_user}","gists_url":"https://api.github.com/users/karthik-k-github/gists{/gist_id}","starred_url":"https://api.github.com/users/karthik-k-github/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karthik-k-github/subscriptions","organizations_url":"https://api.github.com/users/karthik-k-github/orgs","repos_url":"https://api.github.com/users/karthik-k-github/repos","events_url":"https://api.github.com/users/karthik-k-github/events{/privacy}","received_events_url":"https://api.github.com/users/karthik-k-github/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-04-27T12:45:17Z","updated_at":"2017-04-27T16:19:59Z","closed_at":null,"body":"I was trying the runtime_CLI python script to dump the multicast related information using the mc_dump command. The runtime_CLI seems to exit with the following backtrace:\r\n\r\nRuntimeCmd: mc_dump\r\n\r\nMC ENTRIES\r\n\r\nmgrp(1)\r\n  -> (L1h=0, rid=0) -> (ports=[1], lags=[])\r\n  -> (L1h=1, rid=1) -> (ports=[2], lags=[])\r\n\r\nLAGS\r\nTraceback (most recent call last):\r\n  File \"behavioral-model/targets/l2_switch/runtime_CLI\", line 2216, in <module>\r\n    main()\r\n  File \"behavioral-model/targets/l2_switch/runtime_CLI\", line 2213, in main\r\n    RuntimeAPI(args.pre, standard_client, mc_client).cmdloop()\r\n  File \"/usr/lib/python2.7/cmd.py\", line 142, in cmdloop\r\n    stop = self.onecmd(line)\r\n  File \"/usr/lib/python2.7/cmd.py\", line 221, in onecmd\r\n    return func(arg)\r\n  File \"behavioral-model/targets/l2_switch/runtime_CLI\", line 585, in handle\r\n    return f(*args, **kwargs)\r\n  File \"behavioral-model/targets/l2_switch/runtime_CLI\", line 1621, in do_mc_dump\r\n    for lag in mc_json[\"lags\"]:\r\nKeyError: 'lags'\r\n\r\nHas anyone faced this issue ?\r\n"},"comment":{"url":"https://api.github.com/repos/p4lang/behavioral-model/issues/comments/297765685","html_url":"https://github.com/p4lang/behavioral-model/issues/342#issuecomment-297765685","issue_url":"https://api.github.com/repos/p4lang/behavioral-model/issues/342","id":297765685,"user":{"login":"antoninbas","id":2495809,"avatar_url":"https://avatars2.githubusercontent.com/u/2495809?v=3","gravatar_id":"","url":"https://api.github.com/users/antoninbas","html_url":"https://github.com/antoninbas","followers_url":"https://api.github.com/users/antoninbas/followers","following_url":"https://api.github.com/users/antoninbas/following{/other_user}","gists_url":"https://api.github.com/users/antoninbas/gists{/gist_id}","starred_url":"https://api.github.com/users/antoninbas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antoninbas/subscriptions","organizations_url":"https://api.github.com/users/antoninbas/orgs","repos_url":"https://api.github.com/users/antoninbas/repos","events_url":"https://api.github.com/users/antoninbas/events{/privacy}","received_events_url":"https://api.github.com/users/antoninbas/received_events","type":"User","site_admin":false},"created_at":"2017-04-27T16:19:59Z","updated_at":"2017-04-27T16:19:59Z","body":"Thanks for reporting this issue and taking the time to look at the code. I have opened a pull request for this, which will be merged into master soon."}}
{"actor":{"display_login":"antoninbas"}}