834
def process_create_network(self, session, data, result):
855
def process_create_network(self, plugin_context, data, result):
835
856
"""Process extended attributes for create network.
837
:param session: database session
858
:param plugin_context: plugin request context
838
859
:param data: dictionary of incoming network data
839
860
:param result: network dictionary to extend
841
Called inside transaction context on session to validate and
842
persist any extended network attributes defined by this
862
Called inside transaction context on plugin_context.session to
863
validate and persist any extended network attributes defined by this
843
864
driver. Extended attribute values must also be added to
848
def process_create_subnet(self, session, data, result):
869
def process_create_subnet(self, plugin_context, data, result):
849
870
"""Process extended attributes for create subnet.
851
:param session: database session
872
:param plugin_context: plugin request context
852
873
:param data: dictionary of incoming subnet data
853
874
:param result: subnet dictionary to extend
855
Called inside transaction context on session to validate and
856
persist any extended subnet attributes defined by this
876
Called inside transaction context on plugin_context.session to
877
validate and persist any extended subnet attributes defined by this
857
878
driver. Extended attribute values must also be added to
862
def process_create_port(self, session, data, result):
883
def process_create_port(self, plugin_context, data, result):
863
884
"""Process extended attributes for create port.
865
:param session: database session
886
:param plugin_context: plugin request context
866
887
:param data: dictionary of incoming port data
867
888
:param result: port dictionary to extend
869
Called inside transaction context on session to validate and
870
persist any extended port attributes defined by this
890
Called inside transaction context on plugin_context.session to
891
validate and persist any extended port attributes defined by this
871
892
driver. Extended attribute values must also be added to
876
def process_update_network(self, session, data, result):
897
def process_update_network(self, plugin_context, data, result):
877
898
"""Process extended attributes for update network.
879
:param session: database session
900
:param plugin_context: plugin request context
880
901
:param data: dictionary of incoming network data
881
902
:param result: network dictionary to extend
883
Called inside transaction context on session to validate and
884
update any extended network attributes defined by this
904
Called inside transaction context on plugin_context.session to
905
validate and update any extended network attributes defined by this
885
906
driver. Extended attribute values, whether updated or not,
886
907
must also be added to result.
890
def process_update_subnet(self, session, data, result):
911
def process_update_subnet(self, plugin_context, data, result):
891
912
"""Process extended attributes for update subnet.
893
:param session: database session
914
:param plugin_context: plugin request context
894
915
:param data: dictionary of incoming subnet data
895
916
:param result: subnet dictionary to extend
897
Called inside transaction context on session to validate and
898
update any extended subnet attributes defined by this
918
Called inside transaction context on plugin_context.session to
919
validate and update any extended subnet attributes defined by this
899
920
driver. Extended attribute values, whether updated or not,
900
921
must also be added to result.
904
def process_update_port(self, session, data, result):
925
def process_update_port(self, plugin_context, data, result):
905
926
"""Process extended attributes for update port.
907
:param session: database session
928
:param plugin_context: plugin request context
908
929
:param data: dictionary of incoming port data
909
930
:param result: port dictionary to extend
911
Called inside transaction context on session to validate and
912
update any extended port attributes defined by this
932
Called inside transaction context on plugin_context.session to
933
validate and update any extended port attributes defined by this
913
934
driver. Extended attribute values, whether updated or not,
914
935
must also be added to result.
918
def extend_network_dict(self, session, result):
939
def extend_network_dict(self, session, base_model, result):
919
940
"""Add extended attributes to network dictionary.
921
942
:param session: database session
943
:param base_model: network model data
922
944
:param result: network dictionary to extend
924
946
Called inside transaction context on session to add any