Module Import alias Import alias Import alias Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str ImportFrom alias ImportFrom alias alias alias alias ImportFrom alias Import alias Assign NameStore ListLoad Str Str Str Assign NameStore ListLoad TupleLoad Str Str TupleLoad Str Str TupleLoad Str NameLoad TupleLoad Str NameLoad Assign NameStore NameStore NameStore ListLoad NameLoad NameLoad ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults vararg kwarg body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad Call NameLoad Call NameLoad Str attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Dict Str Dict NameLoad Dict Num Dict Str Str NameLoad Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Str Assign NameStore Dict Str Dict Str Str Dict Num Num Dict Str Str Str Num Dict Str Str Str Num Dict Num Dict Str Str Str Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Str Dict Str Dict NameLoad Dict Num Dict Str Str NameLoad Num Dict Str Dict Str Str Dict Num Num Dict Str Str Str Num Dict Str Str Str Num Dict Num Dict Str Str Str Num Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body For NameStore NameLoad body Assign TupleStore NameStore NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad If NameLoad body Assign NameStore Call NameLoad Num Num Assign NameStore Call NameLoad NameLoad If NameLoad body Assign NameStore Call NameLoad Num Num Assign NameStore Call NameLoad NameLoad If NameLoad body Assign NameStore Call NameLoad keyword Num keyword Num Assign NameStore Call NameLoad Str NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore NameStore NameStore NameStore Str If CompareIsNot NameLoad NameLoad body Assign NameStore BinOpMod Str NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore BinOpMod Str NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore BinOpMod Str NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore BinOpMod Str NameLoad Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body For NameStore NameLoad body Assign TupleStore NameStore NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad If NameLoad body Assign NameStore Call NameLoad Num Num Assign NameStore Call NameLoad NameLoad If NameLoad body Assign NameStore Call NameLoad Num Num Assign NameStore Call NameLoad NameLoad If NameLoad body Assign NameStore Call NameLoad keyword Num keyword Num Assign NameStore Call NameLoad Str NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore NameStore NameStore NameStore Str If CompareIsNot NameLoad NameLoad body Assign NameStore BinOpMod Str NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore BinOpMod Str NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore BinOpMod Str NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore BinOpMod Str NameLoad Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body For NameStore NameLoad body Assign TupleStore NameStore NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad If NameLoad body Assign NameStore Call NameLoad Num Num Assign NameStore Call NameLoad NameLoad If NameLoad body Assign NameStore Call NameLoad Num Num Assign NameStore Call NameLoad NameLoad If NameLoad body Assign NameStore Call NameLoad keyword Num keyword Num Assign NameStore Call NameLoad Str NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore NameStore NameStore NameStore Str If CompareIsNot NameLoad NameLoad body Assign NameStore BinOpMod Str NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore BinOpMod Str NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore BinOpMod Str NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore BinOpMod Str NameLoad Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Num Assign NameStore Str Assign NameStore Call NameLoad Str NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Num Assign NameStore Str Assign NameStore Call NameLoad Str NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A N/A sys N/A os N/A unittest N/A N/A N/A N/A sys path append N/A N/A N/A os path join N/A N/A N/A os path dirname __file__ ../lib random choice testlib get_fixture function random_int random_string testlib EapiConfigUnitTest N/A pyeapi.api.staticroute N/A IP_DESTS N/A 11.111.11.0/24 222.22.222.0/24 33.34.35.0/24 N/A NEXT_HOPS N/A N/A Ethernet1 3.3.3.3 N/A Ethernet2 2.2.2.2 N/A Null0 None N/A 44.44.44.0 None N/A DISTANCES TAGS ROUTE_NAMES N/A None True TestApiStaticroute N/A EapiConfigUnitTest N/A __init__ N/A N/A self N/A args kwargs N/A N/A N/A N/A N/A super TestApiStaticroute self __init__ args kwargs N/A N/A self instance N/A N/A N/A N/A pyeapi api staticroute StaticRoute None N/A N/A self config N/A N/A N/A open N/A get_fixture running_config.text read N/A test_instance N/A N/A self N/A N/A N/A result N/A N/A N/A N/A pyeapi api staticroute instance None N/A N/A N/A self assertIsInstance result N/A N/A N/A pyeapi api staticroute StaticRoute N/A test_get N/A N/A self N/A N/A N/A ip_dest 0.0.0.0/0 N/A routes N/A 192.68.1.254 N/A None N/A 1 N/A route_name tag None 0 N/A result N/A N/A N/A self instance get ip_dest N/A N/A N/A self assertEqual result routes N/A ip_dest 1.2.3.0/24 N/A routes N/A Ethernet1 N/A 1.1.1.1 10.1.1.1 N/A 1 10 N/A route_name tag test1 1 N/A route_name tag test1 1 N/A 20 N/A route_name tag test1 1 N/A result N/A N/A N/A self instance get ip_dest N/A N/A N/A self assertEqual result routes N/A test_getall N/A N/A self N/A N/A N/A routes N/A 0.0.0.0/0 1.2.3.0/24 N/A 192.68.1.254 N/A None N/A 1 N/A route_name tag None 0 N/A Ethernet1 N/A 1.1.1.1 10.1.1.1 N/A 1 10 N/A route_name tag test1 1 N/A route_name tag test1 1 N/A 20 N/A route_name tag test1 1 N/A N/A self maxDiff None N/A result N/A N/A N/A self instance getall N/A N/A N/A self assertEqual result routes N/A test_create N/A N/A self N/A N/A N/A ip_dest IP_DESTS N/A N/A N/A next_hop next_hop_ip N/A choice NEXT_HOPS N/A distance N/A choice DISTANCES N/A distance N/A N/A distance N/A random_int 0 255 N/A tag N/A choice TAGS N/A tag N/A N/A tag N/A random_int 0 255 N/A route_name N/A choice ROUTE_NAMES N/A route_name N/A N/A route_name N/A random_string minchar 4 maxchar 10 N/A func N/A function create ip_dest next_hop next_hop_ip next_hop_ip distance distance tag tag route_name route_name N/A cmd_next_hop_ip cmd_distance cmd_tag cmd_route_name N/A N/A next_hop_ip None N/A N/A cmd_next_hop_ip N/A  %s next_hop_ip N/A N/A distance None N/A N/A cmd_distance N/A  %d distance N/A N/A tag None N/A N/A cmd_tag N/A  tag %d tag N/A N/A route_name None N/A N/A cmd_route_name N/A  name %s route_name N/A cmds N/A ip route %s %s%s%s%s%s N/A ip_dest next_hop cmd_next_hop_ip cmd_distance cmd_tag cmd_route_name N/A N/A N/A self eapi_positive_config_test func cmds N/A test_delete N/A N/A self N/A N/A N/A ip_dest IP_DESTS N/A N/A N/A next_hop next_hop_ip N/A choice NEXT_HOPS N/A distance N/A choice DISTANCES N/A distance N/A N/A distance N/A random_int 0 255 N/A tag N/A choice TAGS N/A tag N/A N/A tag N/A random_int 0 255 N/A route_name N/A choice ROUTE_NAMES N/A route_name N/A N/A route_name N/A random_string minchar 4 maxchar 10 N/A func N/A function delete ip_dest next_hop next_hop_ip next_hop_ip distance distance tag tag route_name route_name N/A cmd_next_hop_ip cmd_distance cmd_tag cmd_route_name N/A N/A next_hop_ip None N/A N/A cmd_next_hop_ip N/A  %s next_hop_ip N/A N/A distance None N/A N/A cmd_distance N/A  %d distance N/A N/A tag None N/A N/A cmd_tag N/A  tag %d tag N/A N/A route_name None N/A N/A cmd_route_name N/A  name %s route_name N/A cmds N/A no ip route %s %s%s%s%s%s N/A ip_dest next_hop cmd_next_hop_ip cmd_distance cmd_tag cmd_route_name N/A N/A N/A self eapi_positive_config_test func cmds N/A test_default N/A N/A self N/A N/A N/A ip_dest IP_DESTS N/A N/A N/A next_hop next_hop_ip N/A choice NEXT_HOPS N/A distance N/A choice DISTANCES N/A distance N/A N/A distance N/A random_int 0 255 N/A tag N/A choice TAGS N/A tag N/A N/A tag N/A random_int 0 255 N/A route_name N/A choice ROUTE_NAMES N/A route_name N/A N/A route_name N/A random_string minchar 4 maxchar 10 N/A func N/A function default ip_dest next_hop next_hop_ip next_hop_ip distance distance tag tag route_name route_name N/A cmd_next_hop_ip cmd_distance cmd_tag cmd_route_name N/A N/A next_hop_ip None N/A N/A cmd_next_hop_ip N/A  %s next_hop_ip N/A N/A distance None N/A N/A cmd_distance N/A  %d distance N/A N/A tag None N/A N/A cmd_tag N/A  tag %d tag N/A N/A route_name None N/A N/A cmd_route_name N/A  name %s route_name N/A cmds N/A default ip route %s %s%s%s%s%s N/A ip_dest next_hop cmd_next_hop_ip cmd_distance cmd_tag cmd_route_name N/A N/A N/A self eapi_positive_config_test func cmds N/A test_set_tag N/A N/A self N/A N/A N/A ip_dest 1.2.3.0/24 N/A next_hop Ethernet1 N/A next_hop_ip 1.1.1.1 N/A distance 10 N/A tag 99 N/A func N/A function set_tag ip_dest next_hop next_hop_ip next_hop_ip distance distance tag tag N/A cmd N/A ip route %s %s %s %s tag %s N/A ip_dest next_hop next_hop_ip distance tag N/A N/A N/A self eapi_positive_config_test func cmd N/A test_set_route_name N/A N/A self N/A N/A N/A ip_dest 1.2.3.0/24 N/A next_hop Ethernet1 N/A next_hop_ip 1.1.1.1 N/A distance 10 N/A route_name test99 N/A func N/A function set_route_name ip_dest next_hop next_hop_ip next_hop_ip distance distance route_name route_name N/A cmd N/A ip route %s %s %s %s name %s N/A ip_dest next_hop next_hop_ip distance route_name N/A N/A N/A self eapi_positive_config_test func cmd N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main