Tweaks to private_public demo
- Typo fixed - Added missing .enforce file Change-Id: I95a4d36b5d9edfa01ce8ef976206e33e616dfa49
This commit is contained in:
parent
30b9c8c326
commit
d8b9801215
11
examples/private_public_network.enforce
Normal file
11
examples/private_public_network.enforce
Normal 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)
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user