Skip to content
This repository has been archived by the owner on Jun 27, 2018. It is now read-only.

Commit

Permalink
query3 is now demo CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
ngsrinivas committed Mar 10, 2016
1 parent a15ff2f commit e60f2bb
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion pyretic/examples/demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,9 +261,17 @@ def query_test():
print len(buckets)
return res_paths

def query3():
""" Use a dynamic path policy and a CLI to have user-typed queries. """
p = dynamic_path_policy(path_empty())
cli_thread = threading.Thread(target=span_cli, args=(
p, count_callback))
cli_thread.start()
return p

def path_main(**kwargs):
return query1()
# return query1()
return query3()

def main():
return forwarding_policy()

0 comments on commit e60f2bb

Please sign in to comment.