weight=args.get("weight"),
match=args.get("match"),
bidirectional=args.get("bidirectional"),
- cookie=args.get("cookie"))
+ cookie=args.get("cookie"),
+ priority=args.get("priority"))
response = put("%s/restapi/network/%s/%s" %
(args.get("endpoint"),
weight=args.get("weight"),
match=args.get("match"),
bidirectional=args.get("bidirectional"),
- cookie=args.get("cookie"))
+ cookie=args.get("cookie"),
+ priority=args.get("priority"))
response = delete("%s/restapi/network/%s/%s" %
(args.get("endpoint"),
parser.add_argument(
"--weight", "-w", dest="weight",
help="weight edge attribute to calculate the path")
+parser.add_argument(
+ "--priority", "-p", dest="priority", default="0",
+ help="priority of flow rule")
parser.add_argument(
"--match", "-m", dest="match",
help="string holding extra matches for the flow entries")
parser.add_argument(
- "--bidirectional", "-b", dest="bidirectional",
+ "--bidirectional", "-b", dest="bidirectional", action='store_true',
help="add/remove the flow entries from src to dst and back")
parser.add_argument(
"--cookie", "-c", dest="cookie",
def main(argv):
args = vars(parser.parse_args(argv))
c = RestApiClient()
- c.execute_command(args)
\ No newline at end of file
+ c.execute_command(args)