congressclient.osc.v1.policy module

Policy action implemenations

class congressclient.osc.v1.policy.CreatePolicy(app, app_args, cmd_name=None)

Bases: cliff.show.ShowOne

Create a policy.

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <KeywordArgumentAdapter congressclient.osc.v1.policy.CreatePolicy (WARNING)>
take_action(parsed_args)

Return a two-part tuple with a tuple of column names and a tuple of values.

class congressclient.osc.v1.policy.CreatePolicyFromFile(app, app_args, cmd_name=None)

Bases: cliff.show.ShowOne

Create a policy.

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <KeywordArgumentAdapter congressclient.osc.v1.policy.CreatePolicy (WARNING)>
take_action(parsed_args)

Return a two-part tuple with a tuple of column names and a tuple of values.

class congressclient.osc.v1.policy.CreatePolicyRule(app, app_args, cmd_name=None)

Bases: cliff.show.ShowOne

Create a policy rule.

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <KeywordArgumentAdapter congressclient.osc.v1.policy.CreatePolicyRule (WARNING)>
take_action(parsed_args)

Return a two-part tuple with a tuple of column names and a tuple of values.

class congressclient.osc.v1.policy.DeletePolicy(app, app_args, cmd_name=None)

Bases: cliff.command.Command

Delete a policy.

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <KeywordArgumentAdapter congressclient.osc.v1.policy.DeletePolicy (WARNING)>
take_action(parsed_args)

Override to do something useful.

The returned value will be returned by the program.

class congressclient.osc.v1.policy.DeletePolicyRule(app, app_args, cmd_name=None)

Bases: cliff.command.Command

Delete a policy rule.

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <KeywordArgumentAdapter congressclient.osc.v1.policy.DeletePolicyRule (WARNING)>
take_action(parsed_args)

Override to do something useful.

The returned value will be returned by the program.

class congressclient.osc.v1.policy.ListPolicy(app, app_args, cmd_name=None)

Bases: cliff.lister.Lister

List Policy.

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <KeywordArgumentAdapter congressclient.osc.v1.policy.ListPolicy (WARNING)>
take_action(parsed_args)

Return a tuple containing the column names and an iterable containing the data to be listed.

class congressclient.osc.v1.policy.ListPolicyRows(app, app_args, cmd_name=None)

Bases: cliff.lister.Lister

List policy rows.

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <KeywordArgumentAdapter congressclient.osc.v1.policy.ListPolicyRows (WARNING)>
take_action(parsed_args)

Return a tuple containing the column names and an iterable containing the data to be listed.

class congressclient.osc.v1.policy.ListPolicyRules(app, app_args, cmd_name=None)

Bases: cliff.command.Command

List policy rules.

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <KeywordArgumentAdapter congressclient.osc.v1.policy.ListPolicyRules (WARNING)>
take_action(parsed_args)

Override to do something useful.

The returned value will be returned by the program.

class congressclient.osc.v1.policy.ListPolicyTables(app, app_args, cmd_name=None)

Bases: cliff.lister.Lister

List policy tables.

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <KeywordArgumentAdapter congressclient.osc.v1.policy.ListPolicyTables (WARNING)>
take_action(parsed_args)

Return a tuple containing the column names and an iterable containing the data to be listed.

class congressclient.osc.v1.policy.ShowPolicy(app, app_args, cmd_name=None)

Bases: cliff.show.ShowOne

Show policy properties.

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <KeywordArgumentAdapter congressclient.osc.v1.policy.ShowPolicy (WARNING)>
take_action(parsed_args)

Return a two-part tuple with a tuple of column names and a tuple of values.

class congressclient.osc.v1.policy.ShowPolicyRule(app, app_args, cmd_name=None)

Bases: cliff.show.ShowOne

Show a policy rule.

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <KeywordArgumentAdapter congressclient.osc.v1.policy.ShowPolicyRule (WARNING)>
take_action(parsed_args)

Return a two-part tuple with a tuple of column names and a tuple of values.

class congressclient.osc.v1.policy.ShowPolicyTable(app, app_args, cmd_name=None)

Bases: cliff.show.ShowOne

Show policy table properties.

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <KeywordArgumentAdapter congressclient.osc.v1.policy.ShowPolicyTable (WARNING)>
take_action(parsed_args)

Return a two-part tuple with a tuple of column names and a tuple of values.

class congressclient.osc.v1.policy.SimulatePolicy(app, app_args, cmd_name=None)

Bases: cliff.command.Command

Show the result of simulation.

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <KeywordArgumentAdapter congressclient.osc.v1.policy.SimulatePolicy (WARNING)>
take_action(parsed_args)

Override to do something useful.

The returned value will be returned by the program.

congressclient.osc.v1.policy.get_rule_id_from_name(client, parsed_args)