Tweaks to private_public demo

- Typo fixed
- Added missing .enforce file

Change-Id: I95a4d36b5d9edfa01ce8ef976206e33e616dfa49
This commit is contained in:
Tim Hinrichs 2014-02-11 13:01:16 -08:00
parent 30b9c8c326
commit d8b9801215
2 changed files with 12 additions and 1 deletions

View File

@ -0,0 +1,11 @@
// Enforcement policy
disconnect_network(vm, network) :-
error(vm),
nova:virtual_machine(vm),
nova:network(vm, network),
not neutron:public_network(network),
neutron:owner(network, network_owner),
nova:owner(vm, vm_owner),
not same_group(network_owner, vm_owner)

View File

@ -27,7 +27,7 @@ error(vm) :- nova:virtual_machine(vm), nova:network(vm, network),
same-group(user1, user2) :- cms:group(user1, group), cms:group(user2, group)
--- Commands ------------------------------------
cd congress/src/policy
cd congress/congress/policy
PYTHONPATH=../../thirdparty python
>>> import runtime