<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
Hi Madhu,
<div><br>
</div>
<div>We have an end-user tutorial in review right now. That should help you get started understanding the end-to-end flow a bit better. Look for it to be merged today or tomorrow.</div>
<div><br>
</div>
<div>Tim</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
<div>
<div>On Aug 21, 2014, at 2:44 AM, Madhu Mohan <<a href="mailto:mmohan@mvista.com">mmohan@mvista.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div dir="ltr">
<div>
<div>
<div>
<div>
<div>
<div>
<div>Hi,</div>
<br>
</div>
Since a few weeks I am trying to get a hold on Congress code base and understand the flow.
<br>
<br>
</div>
Here is a brief summary what I am trying out:<br>
<br>
</div>
Prepared a dummy client to send the policy strings to congress_server listening at the path "/policies". This is now changed to "v1/policies". I am using "POST" request to send the policy string to the server.<br>
<br>
</div>
The call to server somehow seems to get converted to an action with the name "create_policies"<br>
Added a new API "create_policies" in the api model policy_model.py which gets the policy string in "params".<br>
<br>
</div>
I am able to call compile.parse() and runtime.initialize() functions from this API.
<br>
</div>
<div>The compilation produces a result in the format below: <br>
<br>
<i>Rule(head=[Literal(table=u'error', arguments=[Variable(name=u'vm')], negated=False)], body=[Literal(table=u'nova:virtual_machine', arguments=[Variable(name=u'vm')],.............<br>
</i><br>
</div>
<div>I am not really sure about how to go about from here to see the policies actually getting applied and monitored.<br>
<br>
</div>
<div>Any resource or instructions on getting through the code flow will be of great help to proceed further.
<br>
<br>
</div>
<div>Thanks in Advance,<br>
</div>
<div>Madhu Mohan<br>
</div>
<div><br>
</div>
<br>
<div><br>
</div>
</div>
_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev<br>
</blockquote>
</div>
<br>
</div>
</body>
</html>