<s> '''<STR_LIT>''' <EOL> from django . db import models <EOL> from django . conf import settings <EOL> from openflow . plugin . gapi import gapi , rspec <EOL> from geni . util . urn_util import publicid_to_urn <EOL> OTHER_BASENAME = "<STR_LIT>" <EOL> OTHER_PREFIX = publicid_to_urn ( <EOL> "<STR_LIT>" <EOL> % ( OTHER_BASENAME , settings . OPENFLOW_GCF_BASE_SUFFIX ) <EOL> ) <EOL> class DummyOFAggregate ( models . Model ) : <EOL> adv_rspec = models . XMLField ( ) <EOL> resv_rspec = models . XMLField ( null = True , blank = True ) <EOL> def snapshot_switches ( self ) : <EOL> self . adv_rspec = gapi . ListResources ( { } , None ) <EOL> self . adv_rspec = self . adv_rspec . replace ( <EOL> rspec . OPENFLOW_GAPI_RSC_URN_PREFIX , OTHER_PREFIX ) <EOL> self . save ( ) </s>
