Skip to content

Fixes by autopep8 action #32

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: add-riolo-8r-1c-srv6-pm
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions nets-in-progress/riolo-8r-1c-srv6-pm/isis8d.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
NODE_MANAGER_GRPC_PORT = os.getenv('NODE_MANAGER_GRPC_PORT', None)



class BaseNode(Host):

def __init__(self, name, *args, **kwargs):
Expand Down Expand Up @@ -343,7 +342,8 @@ def simple_test():
add_nodes_to_etc_hosts()

# This waiting time is needed because after several tests we noticed that
# it is needed some time to let each node of the topology to be set up correctly
# it is needed some time to let each node of the topology to be set up
# correctly
print("Waiting the components of the topology to set up correctly (40 seconds)")
sleep(40)

Expand Down Expand Up @@ -414,6 +414,5 @@ def __main():
simple_test()



if __name__ == '__main__':
__main()
62 changes: 31 additions & 31 deletions nets-in-progress/riolo-8r-1c-srv6-pm/twamp.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,37 +3,37 @@


class TWAMPTPacketSender(Packet):
name ="TWAMPPacketSender"
fields_desc=[IntField("SequenceNumber",0),
BitField("FirstPartTimestamp",0,32),
BitField("SecondPartTimestamp",0,32),
BitEnumField("S", 0, 1, {0: " no external synchronization",
1: "external synchronization"}),
BitField("Z",0,1),
BitField("Scale",0,6),
BitField("Multiplier",1,8)] #manca il padding
name = "TWAMPPacketSender"
fields_desc = [IntField("SequenceNumber", 0),
BitField("FirstPartTimestamp", 0, 32),
BitField("SecondPartTimestamp", 0, 32),
BitEnumField("S", 0, 1, {0: " no external synchronization",
1: "external synchronization"}),
BitField("Z", 0, 1),
BitField("Scale", 0, 6),
BitField("Multiplier", 1, 8)] # manca il padding


class TWAMPTPacketReflector(Packet):
name ="TWAMPPacketReflector"
fields_desc=[IntField("SequenceNumber",0),
BitField("FirstPartTimestamp",0,32),
BitField("SecondPartTimestamp",0,32),
BitEnumField("S", 0, 1, {0: " no external synchronization",
1: "external synchronization"}),
BitField("Z",0,1),
BitField("Scale",0,6),
BitField("Multiplier",1,8),
BitField("MBZ",0,16),
BitField("FirstPartTimestampReceiver",0,32),
BitField("SecondPartTimestampReceiver",0,32),
IntField("SequenceNumberSender",0),
BitField("FirstPartTimestampSender",0,32),
BitField("SecondPartTimestampSender",0,32),
BitEnumField("SSender", 0, 1, {0: " no external synchronization",
1: "external synchronization"}),
BitField("ZSender ",0,1),
BitField("ScaleSender",0,6),
BitField("MultiplierSender",1,8),
BitField("MBZ",0,16),
ByteField("SenderTTL",255)] #manca il padding
name = "TWAMPPacketReflector"
fields_desc = [IntField("SequenceNumber", 0),
BitField("FirstPartTimestamp", 0, 32),
BitField("SecondPartTimestamp", 0, 32),
BitEnumField("S", 0, 1, {0: " no external synchronization",
1: "external synchronization"}),
BitField("Z", 0, 1),
BitField("Scale", 0, 6),
BitField("Multiplier", 1, 8),
BitField("MBZ", 0, 16),
BitField("FirstPartTimestampReceiver", 0, 32),
BitField("SecondPartTimestampReceiver", 0, 32),
IntField("SequenceNumberSender", 0),
BitField("FirstPartTimestampSender", 0, 32),
BitField("SecondPartTimestampSender", 0, 32),
BitEnumField("SSender", 0, 1, {0: " no external synchronization",
1: "external synchronization"}),
BitField("ZSender ", 0, 1),
BitField("ScaleSender", 0, 6),
BitField("MultiplierSender", 1, 8),
BitField("MBZ", 0, 16),
ByteField("SenderTTL", 255)] # manca il padding
Loading