Since there is no name conflict with tun_id, no reason to use tun_id_ instead of tun_id. This is needed for OF message conversion from/to json later.
Signed-off-by: Isaku Yamahata <[email protected]> --- ryu/ofproto/ofproto_v1_0_parser.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ryu/ofproto/ofproto_v1_0_parser.py b/ryu/ofproto/ofproto_v1_0_parser.py index 8e7b883..8bca9e9 100644 --- a/ryu/ofproto/ofproto_v1_0_parser.py +++ b/ryu/ofproto/ofproto_v1_0_parser.py @@ -543,9 +543,9 @@ class NXActionResubmitTable(NXActionResubmitBase): @NXActionHeader.register_nx_action_subtype( ofproto_v1_0.NXAST_SET_TUNNEL, ofproto_v1_0.NX_ACTION_SET_TUNNEL_SIZE) class NXActionSetTunnel(NXActionHeader): - def __init__(self, tun_id_): + def __init__(self, tun_id): super(NXActionSetTunnel, self).__init__() - self.tun_id = tun_id_ + self.tun_id = tun_id def serialize(self, buf, offset): msg_pack_into(ofproto_v1_0.NX_ACTION_SET_TUNNEL_PACK_STR, buf, @@ -646,9 +646,9 @@ class NXActionRegLoad(NXActionHeader): @NXActionHeader.register_nx_action_subtype( ofproto_v1_0.NXAST_SET_TUNNEL64, ofproto_v1_0.NX_ACTION_SET_TUNNEL64_SIZE) class NXActionSetTunnel64(NXActionHeader): - def __init__(self, tun_id_): + def __init__(self, tun_id): super(NXActionSetTunnel64, self).__init__() - self.tun_id = tun_id_ + self.tun_id = tun_id def serialize(self, buf, offset): msg_pack_into(ofproto_v1_0.NX_ACTION_SET_TUNNEL64_PACK_STR, buf, -- 1.7.10.4 ------------------------------------------------------------------------------ Try New Relic Now & We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, & servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may _______________________________________________ Ryu-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
